Skip to main content

Python PyPi package Downloads Tests Codecov

TourBillon

TourBillon is free software (distributed under the LPG license) that helps you organize tournaments using the Swiss system, for teams of one or more player(s). It was originally built for the game of Billon, but can be used for any Swiss-system tournament.

With TourBillon you can:

  • register the teams and their players,
  • automatically pair teams round after round (draw),
  • enter the scores of each match,
  • follow the live ranking, including on a big screen in the room,
  • browse the history of past editions, player by player.

📦 Installation

TourBillon is published on PyPI under the name tourbillon-app. If you only want to run the application, install it with pip:

pip install tourbillon-app

Then start the application:

tourbillon

🚀 Getting started

Open your web browser. Three interfaces are available:

Interface Address What it is for
Admin http://localhost:8000/admin Register teams, run the draws, enter scores, view rankings.
Display http://localhost:8000/display Read-only live rankings and current round for the big screen (projector).
History http://localhost:8000/history Player statistics year after year, across every saved tournament.

🏆 A typical tournament

  1. Open the Admin interface and register every team and its players.
  2. Launch the first draw to pair the teams for round 1.
  3. Play the matches, then enter each score in the Admin interface.
  4. Launch the next draw, and repeat for every round (usually 5 to 6).
  5. Show the Display interface on the big screen so everyone can follow the live ranking and see who plays where.
  6. After the event, use the History interface to review player performances across the years.

Your tournaments are saved automatically and remain compatible with the files from previous editions.

📊 How the ranking works

Teams are paired with opponents who have a similar score, never play the same opponent twice, and are never eliminated. Teams are ranked first by the number of games won; in case of a tie, the total number of points decides. The winner is the team with the most games won (then the most points) across all rounds.

For 32 to 64 teams, it is recommended to play between 5 and 6 rounds.

🛠️ Developer mode

Developer mode needs Python, Poetry, Node.js, and npm. On macOS, you can install them step by step as follows.

📦 Installation

1. Install Python

TourBillon requires Python 3.10 or higher. Check whether it is already installed:

python3 --version

If it is missing or too old, install it with Homebrew:

brew install python

or download it from python.org.

2. Install Poetry

Poetry is used to install the Python dependencies and run the project from the source tree:

pip install poetry
poetry --version

3. Install Node.js and npm

Node.js (which bundles npm) is needed to build the web interface. Check if it is installed:

node --version
npm --version

If the command is not found, or reports a version below 18, install it using one of the options below.

Option A — Homebrew

# Install Homebrew if you don't have it yet
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install Node.js (includes npm)
brew install node

# Verify the installation
node --version
npm --version

Option B — official installer

Download the macOS .pkg installer from nodejs.org (choose the LTS version) and follow the graphical installer. It installs both node and npm.

After installation, make sure node --version reports 18 or higher.

4. Install TourBillon from source

From the TourBillon folder, install the backend dependencies with Poetry:

poetry install

Then build the web interface:

cd tourbillon-ui
npm install
npm run build
cd ..

5. Start the application

poetry run tourbillon

🏗️ Build the packages

The frontend must be built once beforehand, then bundled into the Python package via a dedicated script, before running Poetry's build. This keeps the resulting wheel a portable py3-none-any package:

poetry run python scripts/build-ui.py
poetry build

To build the Windows executable locally (on Windows, with the build dependency group installed):

poetry install --with build
poetry run python scripts/build-ui.py
poetry run pyinstaller scripts/build-exe.spec --noconfirm

All packages are generated in the dist/ folder. To inspect the build artifacts before publishing, list that directory:

ls dist/

Publishing a new release

Publishing is automated: pushing a Git tag X.Y.Z triggers the publish.yml workflow, which builds the frontend, builds the package, and uploads it to PyPI using Trusted Publishing (OIDC, no token to manage). In parallel, it also builds a standalone Windows executable with PyInstaller (no Python installation required on the target machine). Both the PyPI artifacts (sdist + wheel) and the Windows executable are then attached to the matching GitHub release.

poetry version <X.Y.Z>
git add pyproject.toml
git commit -m "Bump version to $(poetry version -s)"
git tag "$(poetry version -s)"
git push && git push --tags

The workflow refuses to publish if the tag does not match the version in pyproject.toml.

v6.0.1

  • The default alorithm for draws is "random" if no round created yet
  • Add visual marker is tournament is not saved (and auto-save is off)
  • Fix duplicate log lines on startup
  • Harden API error handling: routers now catch specific business exceptions
  • Simplify the match result endpoint (PUT /api/rounds/{number}/matches): the match is identified by the team ids in the request body, there is no standalone match id anymore
  • Deterministic draw: candidate pairings are now tried closest-in-strength first (wins, points, Buchholz, goal average) instead of raw combinatorial order, finding a valid solution sooner and pruning dead branches earlier
  • Add a CI job building and linting the frontend (tourbillon-ui)
  • Remove the player history progress bar, no longer meaningful with the streamed loading
  • Add Spanish and German translations
  • History: allow bulk-editing a player's firstname/lastname spelling across one or several past editions directly from the player detail view (rewrites the save file(s) in place)
  • Fix a freshly opened Display tab ignoring a view manually picked from the admin sidebar when "Automatic switching" is enabled: the server now remembers whether the current view was a manual pick or auto-computed, so a new tab honors it instead of recomputing the auto view

v6.0.0

  • Make TourBillon compatible with Python >= 3.10
  • Full rework of the UI using Vue.js
  • Remove cli interface
  • Remove wxPython dependecy

Metadata

Release files for tourbillon-app 6.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tourbillon-app 6.0.1
File Size Uploaded Provenance Actions
tourbillon_app-6.0.1.tar.gz 213.9 kB With provenance Details for tourbillon_app-6.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tourbillon-app 6.0.1
File Interpreter ABI Platform Actions
tourbillon_app-6.0.1-py3-none-any.whl Python 3 none any Details for tourbillon_app-6.0.1-py3-none-any.whl

Total release size: 431.0 kB

Release files / tourbillon_app-6.0.1.tar.gz

Download URL tourbillon_app-6.0.1.tar.gz
Size 213.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c4ee97267316b7c719fae3caef8daad6e31d4bff729f0eca39d7c6424d3bb75a
BLAKE2b-256 checksum
How to use checksums
858fe71a2ae42cd07a7c0561778a4d657d73c13d82699076822087ee9c8529e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / tourbillon_app-6.0.1-py3-none-any.whl

Download URL tourbillon_app-6.0.1-py3-none-any.whl
Size 217.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80688ea7691e6b95bb2a39d6b81d69dd7186e06e1537490abef35b4d24313587
BLAKE2b-256 checksum
How to use checksums
b97f4a24938c348f32fe0caff71d56db4b4bbf3bd96ec445e804d91daf6496a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for tourbillon-app 6.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tourbillon_app-6.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

6.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page