Beat Saver API client
Project description
PyBeatSaver
Beat Saver API client
Comes with caching and rate limiting out of the box.
There is also a test mode which can be enabled like this beatsaver = BeatSaverAPI(test_mode=True)
.
This will return random data instead of making API requests to Beat Saver.
Usage:
import asyncio
from pybeatsaver import BeatSaverAPI
async def main():
async with BeatSaverAPI() as beatsaver:
beatmap = await beatsaver.beatmap("16d22")
print(beatmap)
# Get fake data instead
async def main_fake():
async with BeatSaverAPI(test_mode=True) as beatsaver:
beatmap = await beatsaver.beatmap("16d22")
print(beatmap)
asyncio.run(main())
asyncio.run(main_fake())
Faker provider:
from faker import Faker
from pybeatsaver import BeatSaverProvider
faker = Faker()
faker.add_provider(BeatSaverProvider)
beatmap = faker.map_detail()
print(beatmap)
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
PyBeatSaver-0.1.3.tar.gz
(10.8 kB
view details)
Built Distribution
File details
Details for the file PyBeatSaver-0.1.3.tar.gz
.
File metadata
- Download URL: PyBeatSaver-0.1.3.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7ba719af7f349e86d4a2fe84bb118fff6ddd79467cfa3d0f77617098d105bc4 |
|
MD5 | bc66d551afd05d9eb548f8e96f60c3d4 |
|
BLAKE2b-256 | f682d2235ae3b69f2871a5892569d53d3f05633a1c43f0272c2b558487abb76c |
File details
Details for the file PyBeatSaver-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: PyBeatSaver-0.1.3-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c6411d7bcaebd5e651c97325db348cd9c6b2a11e6a2c4e2b643981a8ced9b6c |
|
MD5 | 91568dcd62ece26a625c8b61d2f297ce |
|
BLAKE2b-256 | 23984608acea72c9d406f9d8cfd3b20588cbddb858afaf306bd9cb3e02cc9899 |