This library (WIP) provides an interface to make queries to the Bayes V2 API, which provides data for League of Legends esports games.
- Support V2 API Authentication
- Deploy read the docs
- Rewrite EMH/Historic classes to support the new merged endpoints
- Rewrite tests
pip install bayes_lol_client
If you wish to install the latest development version:
pip install -U git+https://github.com/Allan-Cao/lol_bayes
In order to use the Bayes API, you must have login credentials for v2, which will be prompted the first time you use the library. These will be stored in a file in your user config path.
from bayes_lol_client import BayesEMH
emh = BayesEMH()
summary, details = emh.get_game_data("ESPORTSTMNT02_3211754")
from bayes_lol_client import BayesEMH
emh = BayesEMH(username="user_test", password="secretpassword123")
tags = emh.get_tags_list()
The full documentation on the data available can be found here.
Contributions are always welcome!