Rate
A Cli-tool for rating players from a file. Supported Algorithms:
Usage
rate path/to/file.csv or path/to/file.json
And you will get prompted with interactive options to select:
- First player key in the file
- Second player key in the file
- Result key from the first player perspective in the file
- Algorithm to use
[all, elo, "glicko-1", "glicko-2", "trueskill", "dwz", "ecf"] - Output Format
[csv, json] - How a win is defined in the file
Example:1orwin - How a loss is defined in the file
Example:0orloss - How a draw is defined in the file
Example:0.5ordraw
Example
matches.csv
| player1 | player2 | result1 | result2 | date |
|---|---|---|---|---|
| John | Doe | won | Lost | 12-14-2021 |
| Doe | John | Draw | Draw | 12-15-2021 |
| Sam | John | Lost | won | 12-16-2021 |
examples of generated files in /examples
Answers
- First player key: player1
- Second player key: player2
- Result key: result1
- Algorithm: elo
- Output Format: csv
- How a win is defined: won
- How a loss is defined: Lost
- How a draw is defined: Draw
Installation
$ pip install rate
$ rate
or
$ py -m pip install rate
$ py -m rate
You might need to run it with winpty if you are on Windows.
winpty py -m rate
Contributing
It still needs some work. Please feel free to open an issue or pull request.
Metadata
Release files for rate 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rate-0.1.6.tar.gz | 21.2 kB | Without provenance | Details for rate-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rate-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for rate-0.1.6-py3-none-any.whl |
Total release size: 48.9 kB
Release files / rate-0.1.6.tar.gz
| Download URL | rate-0.1.6.tar.gz |
|---|---|
| Size | 21.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
589b27a766f7ea5eb437f350575b64efcf8605e98adf85bf131bbc9ef6261879
|
|
BLAKE2b-256 checksum How to use checksums |
c04c37b9e76adffd84c42b446e4121e3090ac64bbc6636ae147429faf72117bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.7 Windows/10
|
Release files / rate-0.1.6-py3-none-any.whl
| Download URL | rate-0.1.6-py3-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
201b107be7bf85e18031d90feef3bf335df47e3f67ff2425d383c37d588a32ce
|
|
BLAKE2b-256 checksum How to use checksums |
9870f26d526961f5c08097259c8a65cc50bb196d66899fa8ab5c69748b697d9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.7 Windows/10
|
Security for rate 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.