Easy to use API wrapper for osu!api v2 written in Python. Has a high-level interface while still allowing ways to do more complex things.
- Compatible with Python 3.8+
- Client class which carries out all api requests
- AsynchronousClient class for asynchronous requests (install with async feature)
- NotificationWebsocket class for using the notification websocket feature of osu api v2
- Support for Authorization Code Grant, Client Credentials Grant, and all scopes (except lazer)
- Builtin rate limit handling and ability to tweak
- Uses storage efficient objects
- Refresh and access token is automatically managed
- Utility functions and classes that make your life easier
- Documentation that covers everything osu.py is capable of
# Installs the latest version out on pypi
# Linux/macOS
python3 -m pip install -U osu.py
# Windows
py -3 -m pip install -U osu.py
# Installing straight from github (downloads latest code, which is not guaranteed to be stable)
py -m pip install git+https://github.com/Sheepposu/osu.py.git
# Install with asynchronous client
py -m pip install -U osu.py[async]
# Install with all features
py -m pip install -U osu.py[async,replay,notifications]
# Install from github with features
git clone https://github.com/sheppsu/osu.py
cd osu.py
py -m pip install -U .[async,replay,notifications]
from osu import Client, GameModeStr
client = Client.from_credentials(0, "*****", None)
user = client.get_user(14895608, GameModeStr.STANDARD)
print(user)