beatsaver-1.0.1
توضیحات
An Unofficial Python Beat Saver API Library.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | beatsaver-1.0.1 |
| نام | beatsaver |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | megamaz |
| ایمیل نویسنده | raphael.mazuel@gmail.com |
| آدرس صفحه اصلی | https://github.com/megamaz/beatsaver-python |
| آدرس اینترنتی | https://pypi.org/project/beatsaver/ |
| مجوز | MIT license |
# Python BeatSaver API
This is the unofficial python API for communicating with BeatSaver.\
Installation:
```
python -m pip install BeatSaverPython
```
# Samples
### Getting map from ID
```py
>>> 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
```py
>>> 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
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8, <4 | Python |
نحوه نصب
نصب پکیج whl beatsaver-1.0.1:
pip install beatsaver-1.0.1.whl
نصب پکیج tar.gz beatsaver-1.0.1:
pip install beatsaver-1.0.1.tar.gz