A web application for organizing sports tournaments. Enter team names, split them into groups, and export tournament brackets as CSV.
- Support for multiple sports disciplines
- Flexible team count (4 to 64 teams)
- Configurable group sizes (choose number of groups)
- Automatic random group assignment
- Tournament bracket generation with knockout rounds
- CSV export of full tournament structure
- Python 3.10+
git clone https://github.com/obol89/put_league_2.git
cd put_league_2
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtCopy the example environment file and adjust as needed:
cp .env.example .env| Variable | Description | Default |
|---|---|---|
SECRET_KEY |
Flask session signing key | Random (generated at startup) |
FLASK_DEBUG |
Enable debug mode | false |
source venv/bin/activate
python app.pyOpen http://localhost:5000 in your browser.
- Select a sports discipline
- Choose the number of teams and groups
- Enter team names
- Click "Split into groups" to generate the draw
- Export the tournament bracket as CSV
pip install pytest
python -m pytest tests/ -v- Match results — enter scores for group stage and knockout matches
- Full tournament view — display standings table and knockout bracket in the browser
- Tournament mode selection — choose between knockout tournament (group stage + elimination) or league format (round-robin, everyone plays everyone)
MIT - see LICENSE for details.