https://github.com/boldandbrad/py-elo-db
python tool for calculating and storing elo values and statistics for two sided match-based games
https://github.com/boldandbrad/py-elo-db
elo-rating statistics
Last synced: 3 days ago
JSON representation
python tool for calculating and storing elo values and statistics for two sided match-based games
- Host: GitHub
- URL: https://github.com/boldandbrad/py-elo-db
- Owner: boldandbrad
- License: mit
- Created: 2019-05-02T02:21:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T02:32:43.000Z (over 6 years ago)
- Last Synced: 2025-10-12T13:48:51.314Z (9 months ago)
- Topics: elo-rating, statistics
- Language: Python
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Py-Elo-DB
[](https://travis-ci.org/bradleycwojcik/py-elo-db)
py-elo is a python tool for calculating and storing elo values and statistics for two sided match-based games. All data is stored in a sqlite database structure that can be easily queried, though py-elo-db will do the heavy lifting for you.
## Dependencies
- peewee
## Installation
- clone repository
- create and activate a virtualenv
- run:
```bash
pip3 install -r requirements.txt
```
## Test
```
nosetests
```
## Usages
```bash
python3 app.py --help
```
## Examples
The quickest way to get going with py-elo-db is to add the outcome of a match. There is never a need to manually add new players/teams because py-elo-db will automatically store them for you if they don't already exist when you add a match.
A match can be added with `-m` or `--match`:
```bash
python3 app.py -m "Bulldogs 4 3 Grizzlies"
```
This will create and store new entries for Bulldogs and Grizzlies in the Player table, as well as a new record in the Match table with the score and other relevant data.
Optionally, you can add `SD` to denote the game went to sudden death overtime:
```bash
python3 app.py -m "Bulldogs 4 3 Grizzlies SD"
```
## License
[MIT](https://choosealicense.com/licenses/mit/)