Python api wrapper for osu!droid relax
Project description
Installation
pip install odrx-py
Quick Start
from odrx_py import AsyncODRXAPIClient
# Initialize client
client = AsyncODRXAPIClient()
# Get user by ID
user = await client.get_user_fromid(12345)
# Get beatmap
beatmap = await client.get_beatmap_fromid(1234567)
# Get leaderboard
leaderboard = await client.get_leaderboard(type="pp")
# Get top scores for a user
top_scores = await client.get_top_scores(12345)
API Methods
User Methods
get_user_fromid(user_id)- Fetch user by IDget_user_fromusername(username)- Fetch user by username
Beatmap Methods
get_beatmap_fromid(map_id)- Fetch beatmap by IDget_beatmap_frommd5(md5)- Fetch beatmap by MD5 hashget_beatmap_leaderboard_fromid(map_id)- Get leaderboard for beatmap by IDget_beatmap_leaderboard_frommd5(md5)- Get leaderboard for beatmap by MD5
Score Methods
get_top_scores(user_id)- Get top 100 scores for userget_recent_score(user_id, offset)- Get recent scores with optional offsetget_scores_uid_beatmap_fromid(user_id, map_id)- Get user scores on beatmap by IDget_scores_uid_beatmap_frommd5(user_id, md5)- Get user scores on beatmap by MD5get_scores_uname_beatmap_fromid(username, map_id)- Get user scores by username on beatmap IDget_scores_uname_beatmap_frommd5(username, md5)- Get user scores by username on beatmap MD5
Leaderboard & Whitelist
get_leaderboard(type, country)- Get global leaderboard (type: "pp" or "score")get_whitelist()- Get whitelisted beatmapswhitelist_add_fromid(map_id)- Add beatmap to whitelist by ID (requires key)whitelist_add_frommd5(md5)- Add beatmap to whitelist by MD5 (requires key)
Authentication
For whitelist operations, provide your whitelist key:
client = AsyncODRXAPIClient(whitelist_key="your_key_here")
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
odrx_py-2.0.1.tar.gz
(6.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odrx_py-2.0.1.tar.gz.
File metadata
- Download URL: odrx_py-2.0.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7139b368ee9cc7b1ba3b65fb53a7ff2258e5aa3a974a5fc3a793de57f1032d2
|
|
| MD5 |
1b7b516129c6f2a69c85408e23a6bd9a
|
|
| BLAKE2b-256 |
a6596660a430dba79214459517a21beaee757b117dc221857f22c0b445e7b52e
|
File details
Details for the file odrx_py-2.0.1-py3-none-any.whl.
File metadata
- Download URL: odrx_py-2.0.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0897c0d68b19ac50fb11c8b12354585c411143ff2536a43627eabf1007f53134
|
|
| MD5 |
a6cc1f15c4dc74c10d4a8fd18a8d911b
|
|
| BLAKE2b-256 |
0b9a2d701fd7d4393021d95b30e1b56c16354f8392954dd1bd1cacf812af9cba
|