Skip to main content

A simple python package for calculating chess ratings.

Project description

♟️ elochess

CI codecov Python 3.11 uv 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]

For API support:

pip install elochess[api]

🚀 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

🌐 API

elochess-api

Check out the OpenAPI Spec at http://127.0.0.1:8000/docs.

📄 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.4.1.tar.gz (11.4 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.4.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for elochess-0.4.1.tar.gz
Algorithm Hash digest
SHA256 5d75850beaedb83ed8bff9b536812b1b90351a18d95865f5680d2cedc9a1e4bd
MD5 a081e96339b694f2eb615371304b226e
BLAKE2b-256 2336b661018d68f4c7be223270cf52c5243acece7468479690b877c7d0dcbee2

See more details on using hashes here.

Provenance

The following attestation bundles were made for elochess-0.4.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.4.1-py3-none-any.whl.

File metadata

  • Download URL: elochess-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 13.8 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.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51bbc88ee090efbef1c11fd0586966465f68f0b53dbec8807492378521111915
MD5 cabb40986d5a7f84e6c7b5df3b92680b
BLAKE2b-256 7af35d89037edc510a9d95f1fd3ed628b1b6f413de4bc03311d4f196f30602ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for elochess-0.4.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