Skip to main content

A simple python package for calculating chess ratings

Project description

♟️ elochess

CI codecov Python 3.11 Ruff mypy License: MIT

elochess is a simple python package for calculating chess ratings.

✨ Rating Systems

📦 Installation

pip install elochess

For CLI support:

pip install elochess[cli]

🚀 Usage

🐍 Python

from elochess.elo import EloCalculator

current_rating = 1500
opponent_ratings = [1642, 1425, 1432]
score = 2.5

new_rating = EloCalculator.update_rating(
    current_rating,
    opponent_ratings,
    score
)

💻 CLI

elochess-cli update elo \
  --current 1500 \
  --opponent 1642 \
  --opponent 1425 \
  --opponent 1432 \
  --score 2.5

📄 License

This project is licensed under the MIT License.

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

elochess-0.3.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

elochess-0.3.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file elochess-0.3.1.tar.gz.

File metadata

  • Download URL: elochess-0.3.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for elochess-0.3.1.tar.gz
Algorithm Hash digest
SHA256 63f5c5a1dea3c5257755a315f023bbc19836322fa6aede498d67dc454708778d
MD5 c5cc53333e3da5b599cbc896c8765fd0
BLAKE2b-256 1225ba3f41c6a6ec036e4c0f9d17433c3a931cbb1594947f2e0eff6d7d479c9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for elochess-0.3.1.tar.gz:

Publisher: publish.yml on Moritz72/elochess

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file elochess-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: elochess-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for elochess-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 151cb299a9c11dd1045bec5f4e2e654ed73a66ab748928d71b412d01a64d2926
MD5 ffc085d3140e69c4a2fe5a1023e797d9
BLAKE2b-256 7773df7684fd1b5ececd885e2dd8ab59418efaa6329527eef63fa569131f0561

See more details on using hashes here.

Provenance

The following attestation bundles were made for elochess-0.3.1-py3-none-any.whl:

Publisher: publish.yml on Moritz72/elochess

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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