Skip to main content

A ranking table tennis system

Project description

ranking-table-tennis

Ranking system for table tennis players.

The system keeps a record of championship points and rating points.

Championship points aim at tracking the tournament achievements of players. Their computation is based on the best rounds reached by players in each tournament.

Rating points aim at tracking the relative skill level of players. Their computation is based on the outcomes of one-versus-one matches.

Installation

This system has been developed for a Linux environment.

Using uv (recommended)

uv venv [-p 3.12]
uv sync

Install the package globally (not recommended):

uv pip install ranking-table-tennis

Using pip (single user)

pip install --user ranking-table-tennis

Uninstallation

pip uninstall ranking-table-tennis

Authentication for gspread

To start using the upload spreadsheets capabilities, gspread requires authentication. Please, follow the recommended steps to get your system ready to upload.

Update

Using uv (recommended):

uv sync

Using pip (single user):

pip install --user --upgrade ranking-table-tennis

Usage

The commands must be run in a bash terminal. Use uv run ... if you have installed with uv.

  1. Fill a sheet with the tournament matches. It must be saved in the Tournaments spreadsheet (xlsx).

    Players and Initial Ranking sheets must be in the same spreadsheet (it is used as a database).

  2. Run rtt preprocess.

    The scripts will read the Tournament spreadsheet and will ask for missing information of new players (city, affiliation, initial rating points, and category). This information will be saved in the Players and Initial Ranking sheets.

  3. Run rtt compute.

    It will ask for the tournament that you want to process. 0 will compute all from the beggining. The outcome will be saved in the Ranking spreadsheet.

  4. Run rtt publish.

    It will ask for the index of the tournament that you want to publish. The outcome will be saved in a new spreadsheet.

Development

Install locally from source (editable mode):

uv sync --group test
uv run pytest

Install with pip (editable mode):

pip install --editable ".[test]"
pytest

Update version at pyproject.toml and push it to github. We follow date versions like vYYYY.MM.DD

Once it is merged on master you must tag the commit so a github actions will be triggered to do the rest:

uv build
uv publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ranking_table_tennis-2026.5.20.tar.gz (52.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ranking_table_tennis-2026.5.20-py3-none-any.whl (65.5 kB view details)

Uploaded Python 3

File details

Details for the file ranking_table_tennis-2026.5.20.tar.gz.

File metadata

  • Download URL: ranking_table_tennis-2026.5.20.tar.gz
  • Upload date:
  • Size: 52.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ranking_table_tennis-2026.5.20.tar.gz
Algorithm Hash digest
SHA256 81d49d82de9bfd7b8d93bfb7aafa6ff7ad32d005f86c94f4ac57efc5e6addd47
MD5 7bf02da1cc721fdfd63377904f666fd4
BLAKE2b-256 78c7b2530d14afdc7eec2f011b4dc2a6d109754be9dbb48530de57d110d5c86f

See more details on using hashes here.

File details

Details for the file ranking_table_tennis-2026.5.20-py3-none-any.whl.

File metadata

  • Download URL: ranking_table_tennis-2026.5.20-py3-none-any.whl
  • Upload date:
  • Size: 65.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ranking_table_tennis-2026.5.20-py3-none-any.whl
Algorithm Hash digest
SHA256 03968ec4f95747a5f6ff366965da8ea617be52e95c78853ea2eec653d786bb58
MD5 8fa1cd7a504de5fa27b2eaea6969965c
BLAKE2b-256 f130c1ba07635a4f6c4b3c2a9b7cb02a5df5c47ca740102bfcd9a83cb33b0374

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page