Skip to main content

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

This version

0.3.0

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.3.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

blaseball_mike-0.3.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file blaseball-mike-0.3.0.tar.gz.

File metadata

  • Download URL: blaseball-mike-0.3.0.tar.gz
  • Upload date:
  • Size: 6.4 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

Hashes for blaseball-mike-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9348d1caee88083f9e5494f553139c89d3485c739cb4ddc57ac8e5cfb4169cfd
MD5 e6cbf3febf0ec7825e615eaf76d7ab01
BLAKE2b-256 0fc6770041b3de214e4de4960e395b4ef4c56c74d63e645a8acaff82c00a5716

See more details on using hashes here.

File details

Details for the file blaseball_mike-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: blaseball_mike-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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

Hashes for blaseball_mike-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13b97eb82412714648fbc3002e6c0369825e11ada712ce4b9df982bc85148990
MD5 bc8f406fde2a146172cef267216ec7fe
BLAKE2b-256 e876323f77ba59ad1ec47e9e707b51a45bf5b5844bde53556374366496877d3b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page