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 modern-blaseball
Basic use:
from 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.1.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for modernblaseball-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b09334f7375965b27e98c9f54750a0a2dc4f333283874db5429b14ffa75657a |
|
MD5 | 660278f5fe53425ce37283903b72a0fa |
|
BLAKE2b-256 | 626b4359180f368ee3d49d3be92e141dba6c0c806db99a62d37a386092ec063b |