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.10.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file PyScoreSaber-1.0.10.tar.gz
.
File metadata
- Download URL: PyScoreSaber-1.0.10.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0916201abbf8a677c132c1e1957cac9a20d60578ee84ffc9880b8381d340c502 |
|
MD5 | 5282429f501cf7d9dd66d56754aa56ce |
|
BLAKE2b-256 | baa217048c225923ee9a3d895f0e7cbe46ac83878b9d34efdf76b20f7fe54c7f |
File details
Details for the file PyScoreSaber-1.0.10-py3-none-any.whl
.
File metadata
- Download URL: PyScoreSaber-1.0.10-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 343cb475c3a8f4deddb5c84eaebde7f1dd24037cac7fe28fa6af455e4cb097c4 |
|
MD5 | cb3442329460edba7879b02e401fd828 |
|
BLAKE2b-256 | 6f56ce6b6b37a89733c18d2cc45bab40d427d76fbbe503561620994bda873f6c |