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]

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.0.tar.gz (4.7 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.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: elochess-0.4.0.tar.gz
  • Upload date:
  • Size: 4.7 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.0.tar.gz
Algorithm Hash digest
SHA256 ed3d7bc4728c59bd1a45adae11fd877cb200627f30bc9c0a76e0c44707ae1157
MD5 9a04e150eeda7b6574f92da5f9fcc6fd
BLAKE2b-256 ad6f31e7f0688194f71d809547cc934e202427b5e3e8baf88a3ae3446a2db1a1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: elochess-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fabcc77bcf9b1b7b66d4b43f41c6e29f46227bdcd652bd04dc24b28f3c59cc5
MD5 935db75629657386e2cf0d79de47a2a2
BLAKE2b-256 b19c62c83e34262a42632b80a099be20c83b9e996c2331a00a3d7a5d2c422cbe

See more details on using hashes here.

Provenance

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