An interface for the blaseball API
Project description
this is NOT an endorsement of the music of the band "modern baseball" I am listening to them now and they are not very good.
A blaseball API interface.
Install via pip:
pip install modernblaseball
Basic use:
from modernblaseball.modern_blaseball import blaseball_api
blaseball = blaseball_api()
result = blaseball.get_global_events()
or:
pyobj = structure(blaseball.get_global_events)
blaseball endpoints will often return a 500 when under load, so you can add failover logic as well:
blaseball.failover_500(self.blaseball.get_player_stats, args=self.EXAMPLE_PLAYER)
todo: make all utilities more modular.
`
tests:
python -m unittest
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
modernblaseball-0.5.4.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for modernblaseball-0.5.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddf84a8677abe8eb8eafa1919ae61692bc66689d7e7137a1799c5725858c976d |
|
MD5 | aae1dde7bada73bc562000b3864dd254 |
|
BLAKE2b-256 | f4365cb636f6ff6e9c1c39c6d4a5939ee05e57c0181a8bdd7a3f4246798c0ec1 |