Skip to main content

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


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)

Uploaded Source

Built Distribution

osu.py-0.0.1-py3-none-any.whl (35.7 kB view hashes)

Uploaded Python 3

Supported by

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