Skip to main content

API Wrapper for osu!api v2 written in Python.

Project description

osu.py

Discord server invite PyPI version info Download metric Documentation

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.

Major features/capabilities

  • Python 3.8+

  • Client class that supports all endpoints

  • AsynchronousClient for async requests

  • Supports Authorization Code Grant, Client Credentials Grant, and all scopes (except lazer)

  • Builtin rate limit handling and ability to tweak it

  • Storage-efficient objects

  • Refresh and access tokens are automatically managed

  • Quality of life functions, enums, and designs

  • Extensive documentation

Installation

# 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]

Example

from osu import Client, GameModeStr

client = Client.from_credentials(0, "*****", None)
user = client.get_user(14895608, GameModeStr.STANDARD)
print(user)

Project details


Release history Release notifications | RSS feed

This version

4.3.1

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-4.3.1.tar.gz (91.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osu_py-4.3.1-py3-none-any.whl (103.6 kB view details)

Uploaded Python 3

File details

Details for the file osu_py-4.3.1.tar.gz.

File metadata

  • Download URL: osu_py-4.3.1.tar.gz
  • Upload date:
  • Size: 91.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for osu_py-4.3.1.tar.gz
Algorithm Hash digest
SHA256 8ff3880470ff7e4c6030d7ddc04461594f9d5fde3ad564f1033a8b26fe317ab4
MD5 fe57006c42c2958efd082cc2ace10ed8
BLAKE2b-256 474756e945158a41adbb8149d1f941585fc79e3e6418eee186890e5c14308cf5

See more details on using hashes here.

File details

Details for the file osu_py-4.3.1-py3-none-any.whl.

File metadata

  • Download URL: osu_py-4.3.1-py3-none-any.whl
  • Upload date:
  • Size: 103.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for osu_py-4.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a458919649ea0c17c5079b6cf7754d49c99df6ef296a6e2b607b503027e888f5
MD5 566d673d04a822c6f08439fcdf0147da
BLAKE2b-256 8077b1db148e20d55d8edfd45c1bd72b8bf5a1ccf71e860b5020ea6c38d4f357

See more details on using hashes here.

Supported by

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