Skip to main content

A simple CLI tool to rate matches in a file.

Project description

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: 1 or win
  • How a loss is defined in the file Example: 0 or loss
  • How a draw is defined in the file Example: 0.5 or draw

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.

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

rate-0.1.5.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

rate-0.1.5-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file rate-0.1.5.tar.gz.

File metadata

  • Download URL: rate-0.1.5.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.7 Windows/10

File hashes

Hashes for rate-0.1.5.tar.gz
Algorithm Hash digest
SHA256 2be395acd8b3a6f5d4bcfd88a5053c26fc012a0f39852fccc2b1243512d2d8f9
MD5 e7ae8e30cf8253ccc15ab05d5c33aa74
BLAKE2b-256 b18da49304ab3bbc6436fcb34ca3223655ae7df1a473fefcf1c53a201f7674c3

See more details on using hashes here.

File details

Details for the file rate-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: rate-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.7 Windows/10

File hashes

Hashes for rate-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4d3bee0045bdf93d9c59e3cf2e21f7cd1986cabc7a1a9e2c1eeebc140384f346
MD5 436593e9d242a0ab605fda7b9f66340f
BLAKE2b-256 ad9da59c16f62bae45a1f53c56ce89ede9b321802f369afc6323aaac377bc516

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page