项目作者: bradleycwojcik

项目描述 :
python tool for calculating and storing elo values and statistics for two sided match-based games
高级语言: Python
项目地址: git://github.com/bradleycwojcik/py-elo-db.git
创建时间: 2019-05-02T02:21:24Z
项目社区:https://github.com/bradleycwojcik/py-elo-db

开源协议:MIT License

下载


Py-Elo-DB

Build Status

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:
    1. pip3 install -r requirements.txt

Test

  1. nosetests

Usages

  1. 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:

  1. 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:

  1. python3 app.py -m "Bulldogs 4 3 Grizzlies SD"

License

MIT