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
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
beatsaver-1.1.0.tar.gz
(10.0 kB
view hashes)
Built Distribution
beatsaver-1.1.0-py3-none-any.whl
(12.2 kB
view hashes)
Close
Hashes for beatsaver-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57f4fdde9e605fb7d62b421cbb03dec909d7b4382ef83444cf02f374e80dda55 |
|
MD5 | 977ee35b9f17f1f1d11cb7cd39bda5c5 |
|
BLAKE2b-256 | 7891d333925b551984d2905df967a4bb42e2e90536389d546919d3503be22274 |