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.

Poetry installation (recommended)

poetry install

System-wide installation

sudo pip install ranking-table-tennis

Single-user installation

pip install --user ranking-table-tennis

Uninstallation

[sudo] 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

System-wide update

sudo pip install -U ranking-table-tennis

Single-user update (recommended)

pip install --user -U ranking-table-tennis

Usage

The commands must be run in a bash terminal.

  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 (source directory will immediately affect the installed package without needing to re-install):

pip install --user --editable .

sudo apt install graphviz (still required?)

Update version at pyproject.toml and then create a source distribution

poetry build

Upload to PyPI

poetry publish [--dry-run] [--build]

Upload to TestPyPI

poetry publish -r testpypi [--dry-run] [--build]

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-2024.6.17.tar.gz (38.7 kB view details)

Uploaded Source

Built Distribution

ranking_table_tennis-2024.6.17-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ranking_table_tennis-2024.6.17.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-107-generic

File hashes

Hashes for ranking_table_tennis-2024.6.17.tar.gz
Algorithm Hash digest
SHA256 277987da251aa8bd3eeba31a3f80d9455ab76ef6907f02470f0ce927e71e76e8
MD5 0383faddabb1e913d29c8b22f1901719
BLAKE2b-256 9b06c3c503a8c421dcce5010de47fbe7f915adebce1ef6d4b04dd6bde0b0b70d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ranking_table_tennis-2024.6.17-py3-none-any.whl
Algorithm Hash digest
SHA256 23029f07bb27b4ed72e8e50ad4e4d073ebfeb2fff64b49b36e47bddf961f1661
MD5 9c88ab158ab728225aba79da4b718d8f
BLAKE2b-256 c20a8353d801447439c30dfea5e0c621776210be84a0730875aa0b07ef62110c

See more details on using hashes here.

Provenance

Supported by

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