Easy to use API wrapper for osu!api written in Python.
Project description
osu.py
Easy to use API wrapper for osu!api written in Python. This uses osu!api v2, which is still under development. So some code that was originally working may break overnight. However, I'll do my best to fix any issues I find as quick as possible. You can report issues here or make a pull request if you'd like to contribute.
Installation
Installing the current version out on pypi:
Linux/macOS
python3 -m pip install -U osu.py
Windows
py -3 -m pip install -U osu.py
Installing the development version straight from the github (make sure to replace 'version' with the version number shown on the whl file.):
git clone https://github.com/Sheepposu/osu.py
cd osu.py/dist
python3 -m pip install -U osu.py-version-py3-none-any.whl
Example
from osu import Client, AuthHandler
client_id = 0
client_secret = "***"
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.1.3.tar.gz
(20.2 kB
view hashes)
Built Distribution
osu.py-0.1.3-py3-none-any.whl
(20.8 kB
view hashes)