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 BeatSaverPython
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 return None
>>> doesnotexist = bs.maps.get_map_from_id('z')
>>> doesnotexist is None
True
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for beatsaver-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45811f534284b48b0b48b965ff53bbb1921cd6804f048abf98df6263b1a40e8f |
|
MD5 | bacfe0e4443474d4a83fca39fbba1e9b |
|
BLAKE2b-256 | 67be806153db310ec1efc48dd8556a4d82669e253b6df75db2232a99d805cfca |