A simple python package for calculating chess ratings.
Project description
♟️ elochess
elochess is a simple python package for calculating chess ratings.
✨ Rating Systems
- FIDE Elo used by the FIDE
- Deutsche Wertungszahl used by the German Chess Federation
📦 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d75850beaedb83ed8bff9b536812b1b90351a18d95865f5680d2cedc9a1e4bd
|
|
| MD5 |
a081e96339b694f2eb615371304b226e
|
|
| BLAKE2b-256 |
2336b661018d68f4c7be223270cf52c5243acece7468479690b877c7d0dcbee2
|
Provenance
The following attestation bundles were made for elochess-0.4.1.tar.gz:
Publisher:
publish.yml on Moritz72/elochess
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
elochess-0.4.1.tar.gz -
Subject digest:
5d75850beaedb83ed8bff9b536812b1b90351a18d95865f5680d2cedc9a1e4bd - Sigstore transparency entry: 1420517238
- Sigstore integration time:
-
Permalink:
Moritz72/elochess@f64cdca936f2e5eb4feae7f23bdea6750216d611 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/Moritz72
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f64cdca936f2e5eb4feae7f23bdea6750216d611 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51bbc88ee090efbef1c11fd0586966465f68f0b53dbec8807492378521111915
|
|
| MD5 |
cabb40986d5a7f84e6c7b5df3b92680b
|
|
| BLAKE2b-256 |
7af35d89037edc510a9d95f1fd3ed628b1b6f413de4bc03311d4f196f30602ec
|
Provenance
The following attestation bundles were made for elochess-0.4.1-py3-none-any.whl:
Publisher:
publish.yml on Moritz72/elochess
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
elochess-0.4.1-py3-none-any.whl -
Subject digest:
51bbc88ee090efbef1c11fd0586966465f68f0b53dbec8807492378521111915 - Sigstore transparency entry: 1420517320
- Sigstore integration time:
-
Permalink:
Moritz72/elochess@f64cdca936f2e5eb4feae7f23bdea6750216d611 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/Moritz72
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f64cdca936f2e5eb4feae7f23bdea6750216d611 -
Trigger Event:
release
-
Statement type: