Score Saber API wrapper
Project description
PyScoreSaber
Score Saber API wrapper
Features
- Rate Limit handling
- Query Caching
- Everything is
async
- Additional helper methods and async generators
- Faker data provider
The faker data mode can be activated with the following 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.7.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for PyScoreSaber-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fadb3c77d9e5fc704b910c9aa6bce0eb7780eb2a2c359dd69a1db55276f05875 |
|
MD5 | 1d6cded028d52b53f03748697652c3bb |
|
BLAKE2b-256 | d4e4021b7b70887d75b7026b670458551ff6386b56356663b585845171dc14b8 |