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 \
  --current 1500 \
  --opponent 1642 \
  --opponent 1425 \
  --opponent 1432 \
  --score 2.5

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.0.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.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: elochess-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ffa10d411ec89de81b22506c3b578e763abd6dc8c40688efb869a9c68b8404cb
MD5 6611ab287910e321fe6dba5ca4dd6224
BLAKE2b-256 999ddc0c9de83e15307ae55b6c0b44595f34684bfcc9247c0bf8050822e7f1d9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: elochess-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee43cd5cf54f591296ef040cbfaa3889099e3fbf043868fc4e50adce5ee9b993
MD5 36ff630e23ec612b29aa7640ec7df89a
BLAKE2b-256 18ac148cabe01f9d1870726bae06b50cb21ecf123f14c22b554f9504deb958ea

See more details on using hashes here.

Provenance

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