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
Release files for beatsaver 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| beatsaver-1.1.0.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| beatsaver-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.2 kB
Release files / beatsaver-1.1.0.tar.gz
| Download URL | beatsaver-1.1.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9b6871d0d7c7cec7ffca7fb0d44c6f25bd708bf7c4e807b3025e02b1a85119d
|
|
BLAKE2b-256 checksum How to use checksums |
a1f2d8c5b20ad0b797add17cf64cc3f273751f928e4940a3d4aeee363358be42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.0
|
Release files / beatsaver-1.1.0-py3-none-any.whl
| Download URL | beatsaver-1.1.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57f4fdde9e605fb7d62b421cbb03dec909d7b4382ef83444cf02f374e80dda55
|
|
BLAKE2b-256 checksum How to use checksums |
7891d333925b551984d2905df967a4bb42e2e90536389d546919d3503be22274
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.0
|