Score Saber API client
Project description
PyScoreSaber
Score Saber API client
Comes with caching and rate limiting out of the box.
There is also a test mode which can be enabled like this scoresaber = ScoreSaber(test_mode=True)
.
This will return random data instead of making API requests to Score Saber.
Usage:
import asyncio
from pyscoresaber import ScoreSaberAPI
async def main():
async with ScoreSaberAPI() as scoresaber:
player = await scoresaber.player_full("76561198029447509")
print(player)
# Get fake data instead
async def main_fake():
async with ScoreSaberAPI(test_mode=True) as scoresaber:
player = await scoresaber.player_basic("76561198029447509")
print(player)
asyncio.run(main())
asyncio.run(main_fake())
Faker provider:
from faker import Faker
from pyscoresaber import ScoreSaberProvider
faker = Faker()
faker.add_provider(ScoreSaberProvider)
player = faker.player_basic("76561198029447509")
print(player)
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
PyScoreSaber-1.0.0.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for PyScoreSaber-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bdb702525c992a8dbb9fc832740a8c1132a3c9154690c46598f32fa59f9fec7 |
|
MD5 | 303a5d6c95c61bac58e28834cf1353d8 |
|
BLAKE2b-256 | 8f4601ce3b61152e4c2fb891e7e05602827a75cc3df1da0d69130a4726a4c63d |