Skip to main content

An Unofficial Python Beat Saver API Library.

Project description

Python BeatSaver API

This is the unofficial python API for communicating with BeatSaver.
Installation:

python -m pip install beatsaver

Samples

Getting map from ID

>>> import beatsaver as bs # easier to type really
>>> hardestmap = bs.maps.get_map_from_id('25f')
>>> hardestmap.name
'DM DOKURO - Reality Check Through The Skull'
>>> hardestmap.uploader.name
'rickput'
>>> # maps that don't exist raise BeatSaverNotFoundException
>>> try:
...     doesnotexist = bs.maps.get_map_from_id('z')
... except bs.models.exceptions.BeatSaverNotFoundException:
...     print("oops")
...
oops

Bonus

>>> import beatsaver as bs
>>> rcttc = bs.maps.get_map_from_id('25f')
>>> class smth:
...     def __eq__(self, a):
...         return True
...
>>> bad = smth()
>>> rcttc == bad
True

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

beatsaver-1.1.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

beatsaver-1.1.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file beatsaver-1.1.0.tar.gz.

File metadata

  • Download URL: beatsaver-1.1.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for beatsaver-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d9b6871d0d7c7cec7ffca7fb0d44c6f25bd708bf7c4e807b3025e02b1a85119d
MD5 5916f1d335995f730a4032cd208e86dd
BLAKE2b-256 a1f2d8c5b20ad0b797add17cf64cc3f273751f928e4940a3d4aeee363358be42

See more details on using hashes here.

File details

Details for the file beatsaver-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: beatsaver-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for beatsaver-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57f4fdde9e605fb7d62b421cbb03dec909d7b4382ef83444cf02f374e80dda55
MD5 977ee35b9f17f1f1d11cb7cd39bda5c5
BLAKE2b-256 7891d333925b551984d2905df967a4bb42e2e90536389d546919d3503be22274

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