Skip to main content

small osu api v2 helper

Project description

handles refreshing the access_token and stores a mapping of known osu player names and ids in a sqlite database.
read the osu!api v2 Docs

pip install osu-apy-v2
from osu_apy_v2 import OsuApiV2

api = OsuApiV2(application_id, application_secret)
user_id = api.get_user_id("whitecat")
res = api.get(f"/users/{user_id}/scores/best?mode=osu&limit=1")
print(res.json())

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

osu_apy_v2-0.1.7.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

osu_apy_v2-0.1.7-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

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