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.1.tar.gz
(9.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyScoreSaber-1.0.1.tar.gz.
File metadata
- Download URL: PyScoreSaber-1.0.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f82fecd95d224dc9f404db56fba96aaa0ba8943ac18edced052985ec78aeb13f
|
|
| MD5 |
8fa35d33b5cb66ad1a7b5b29c2093cb2
|
|
| BLAKE2b-256 |
fc83f921215d3b744cbcbd4536f29bc6614e9588f5282304cf61aca8ae8b9115
|
File details
Details for the file PyScoreSaber-1.0.1-py3-none-any.whl.
File metadata
- Download URL: PyScoreSaber-1.0.1-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3437c98985246effae0902e18d361478223d8d8b59a3b58e453e304efb262bd
|
|
| MD5 |
5accce9c1ceb83a4eaee4f12a45da5c8
|
|
| BLAKE2b-256 |
6971b98a029d2efaebf3e1c29668a7390f974755310b284633373a6525f6f7ae
|