Skip to main content

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 ID
  • get_user_fromusername(username) - Fetch user by username

Beatmap Methods

  • get_beatmap_fromid(map_id) - Fetch beatmap by ID
  • get_beatmap_frommd5(md5) - Fetch beatmap by MD5 hash
  • get_beatmap_leaderboard_fromid(map_id) - Get leaderboard for beatmap by ID
  • get_beatmap_leaderboard_frommd5(md5) - Get leaderboard for beatmap by MD5

Score Methods

  • get_top_scores(user_id) - Get top 100 scores for user
  • get_recent_score(user_id, offset) - Get recent scores with optional offset
  • get_scores_uid_beatmap_fromid(user_id, map_id) - Get user scores on beatmap by ID
  • get_scores_uid_beatmap_frommd5(user_id, md5) - Get user scores on beatmap by MD5
  • get_scores_uname_beatmap_fromid(username, map_id) - Get user scores by username on beatmap ID
  • get_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 beatmaps
  • whitelist_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.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

odrx_py-2.0.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file odrx_py-2.0.0.tar.gz.

File metadata

  • Download URL: odrx_py-2.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for odrx_py-2.0.0.tar.gz
Algorithm Hash digest
SHA256 eccdc4f49daf3d530c6c77ef1682f14d4d07a96cc31e5c0f200ab5c60d5ee46f
MD5 531f51d06f16f8c60094569dfc161a73
BLAKE2b-256 f0920451012d86e5c3c247a11de80e88a0d2c8ae0bfb4f848aae760eb26651a2

See more details on using hashes here.

File details

Details for the file odrx_py-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: odrx_py-2.0.0-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

Hashes for odrx_py-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67e871b8575b83c565f56016bf009e8004a5f8bc4c3209cac714b79af52917da
MD5 7acc05dae97300194b43d6edd5bbe961
BLAKE2b-256 224ca28d038345bd10614667ebfef8fbd291a2248b053eaacf6f98fb25302d4d

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