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

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

Uploaded Source

Built Distribution

blaseball_mike-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blaseball-mike-0.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6

File hashes

Hashes for blaseball-mike-0.0.2.tar.gz
Algorithm Hash digest
SHA256 efd61eea28cfa3b8a2f879ab6989f637711c0ec29f95fdee2f6c92ed0a4108df
MD5 3b51b1f82aafa1124fba2429f04cd83a
BLAKE2b-256 4b17d4b16d200c2facee360123b20339ab864dde067bcbac625fbca7f30eb67c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blaseball_mike-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6

File hashes

Hashes for blaseball_mike-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac20f87152b3386aaa5cd8bcda0b63d8c7dd17d63de0600ea258b739495640be
MD5 348cb1de1d14d974d128250c9fbcf9c8
BLAKE2b-256 fcacc9ae9350e89de9227eb0388a0639f4271ed5df5975af67d187c44508109c

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