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)
Built Distribution
Close
Hashes for osu_apy_v2-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e16bb89ae6d91c5fcbe4ac45641e3bdaa52ea203ec7d02b434594a861192786 |
|
MD5 | 17ba7a0af1dbf2069642610646fc304d |
|
BLAKE2b-256 | 9cd51334d1b14ac5a8eca0190cd1d5e5a9a6f995e40ab44cf93d77bba2b6a572 |