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.1.tar.gz
(10.8 kB
view details)
Built Distribution
File details
Details for the file PyBeatSaver-0.1.1.tar.gz
.
File metadata
- Download URL: PyBeatSaver-0.1.1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.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 | 6a51567b52fe8b42c58c992c706e3fcf02e8ab7c92c432e4b7aca630f8fe1dfd |
|
MD5 | c268c0b2948e208b5c59411cb7c7b20c |
|
BLAKE2b-256 | 3901ab6296ecfece67837738ae326121e532cc89bf0cecefb60fec0ae52e6766 |
File details
Details for the file PyBeatSaver-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: PyBeatSaver-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.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 | 9be252c0d9001ed9197d535ace99d2533d8baa19119c61f0651723fcc29119cd |
|
MD5 | 63fcaf0baf6925355bbcbddaa450f1c8 |
|
BLAKE2b-256 | fd3ac37fa0ad4e93c449a3ac5d50be1f717fabc890c3d7ce968a3cfeca399eee |