Skip to main content

Score Saber API wrapper

Project description

GitHub license PyPI version codecov PyPI supported Python versions PyPI downloads

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


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.9.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyScoreSaber-1.0.9-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file PyScoreSaber-1.0.9.tar.gz.

File metadata

  • Download URL: PyScoreSaber-1.0.9.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for PyScoreSaber-1.0.9.tar.gz
Algorithm Hash digest
SHA256 e8b2dacda7282722ebfa698fb61ed68f467764d3389264f711b3f3b757d0e3e5
MD5 993d5de3b4602b7a2647e452d7e59f73
BLAKE2b-256 e07cba9fbd04aaaba2896616fc5704e9f6d9392546e8a192b6e0326ee5cd9a2a

See more details on using hashes here.

File details

Details for the file PyScoreSaber-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: PyScoreSaber-1.0.9-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

Hashes for PyScoreSaber-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e6f73a5d71269a2f2fcecfd8fb562aec50b42bb4b1219fee6442fb4ea11f1b57
MD5 8cf7cc181b580f0db48e76283c01b639
BLAKE2b-256 ce974765a265e0a37037de842b729f25344f183d92c301ccdb17605b6127b195

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page