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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file modernblaseball-0.5.6.tar.gz.
File metadata
- Download URL: modernblaseball-0.5.6.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7abf4a3fd43d016266b77737542910b8c7bd451ef7805b8e42bef99c6e2b16e3
|
|
| MD5 |
bc6783d17d22bcc7783846e42a13a167
|
|
| BLAKE2b-256 |
52e6498f29cf54f6d296e39de0fe35a6cbf149d41e53b9e933f7e750a97fec1a
|
File details
Details for the file modernblaseball-0.5.6-py3-none-any.whl.
File metadata
- Download URL: modernblaseball-0.5.6-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feeed9dd374704d7ac4a27a34709e026e4da0dfbd865a6c0093542c96237464a
|
|
| MD5 |
ff40e44fadd28f0282aea52f03c7df3e
|
|
| BLAKE2b-256 |
cf8853e29f0bfc0a8a54a7a55e13a38d5a8b35fc097ebe080b3928f2ba3c134e
|