Easy to use API wrapper for osu!api written in Python.
Project description
osu_api
Easy to use API wrapper for osu!api written in Python.
Installation
Linux/macOS
python3 -m pip install -U osu_api
Windows
py -3 -m pip install -U osu_api
Example
from osu_api import Client, AuthHandler
client_id = 6714
client_secret = "aI0YbUXbSCoXwSUTg27TdcG4VegzquTVCK5pTONu"
redirect_uri = "http://127.0.0.1:8080"
auth = AuthHandler(client_id, client_secret, redirect_uri)
auth.get_auth_token()
client = Client(auth)
user_id = 14895608
mode = 'osu'
user = client.get_user(user_id, mode)
print(user.username)
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
osu.py-0.0.1.tar.gz
(18.4 kB
view hashes)
Built Distribution
osu.py-0.0.1-py3-none-any.whl
(35.7 kB
view hashes)