Read-only Python wrapper around blaseball game API
Project description
blaseball-mike
Totally not a microphone to the blaseball API
This is a python wrapper over blaseball's public APIs, including player/team/game fetches, as well as deserialization of the event stream.
Installation
pip install blaseball-mike
Usage
>>> from blaseball_mike.models import Team
>>> fridays = Team.load_by_name('fridays')
>>> [player.name for player in fridays.lineup]
['Elijah Valenzuela', 'Juice Collins', 'York Silk', 'Baldwin Breadwinner', 'Terrell Bradley', 'Sixpack Dogwalker', 'Fletcher Yamamoto', 'Bevan Underbuck', 'Christian Combs']
Nested objects will autoload when iterated over. Attributes match the names found in the official Blaseball API, just in snake case. Derived spec can be found here: https://github.com/Society-for-Internet-Blaseball-Research/blaseball-api-spec
Supported objects are:
- Team
- GlobalEvent
- Player
- Division
- Subleague
- League
- Game
Development
python3 -m venv env
source env/bin/activate
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blaseball-mike-0.2.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for blaseball_mike-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2a1d311acb926319dbf1e4eefe0d0bc7f0715055f77373feac80a1a0a631ed2 |
|
MD5 | 3a65a4ffbcbe0a6505fa16b670c71a4c |
|
BLAKE2b-256 | fafaad30d943810b5f81f1c8557e394c354dd3994e53f7e3648200f54ff5a323 |