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
Built Distribution
File details
Details for the file blaseball-mike-0.2.0.tar.gz
.
File metadata
- Download URL: blaseball-mike-0.2.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5897d4ea207333f4c7525a08859c637dbddd1da3cb235848049d5a53f650d8b4 |
|
MD5 | 3aa6a0730e7b405f67fdd1ba68101d28 |
|
BLAKE2b-256 | ebaf935854e522c90f492ec5c0a081a18894c0ac1ae07675e612fe0b067ae8e0 |
File details
Details for the file blaseball_mike-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: blaseball_mike-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.3 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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2a1d311acb926319dbf1e4eefe0d0bc7f0715055f77373feac80a1a0a631ed2 |
|
MD5 | 3a65a4ffbcbe0a6505fa16b670c71a4c |
|
BLAKE2b-256 | fafaad30d943810b5f81f1c8557e394c354dd3994e53f7e3648200f54ff5a323 |