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.1.tar.gz (6.5 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.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

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

Hashes for odrx_py-2.0.1.tar.gz
Algorithm Hash digest
SHA256 c7139b368ee9cc7b1ba3b65fb53a7ff2258e5aa3a974a5fc3a793de57f1032d2
MD5 1b7b516129c6f2a69c85408e23a6bd9a
BLAKE2b-256 a6596660a430dba79214459517a21beaee757b117dc221857f22c0b445e7b52e

See more details on using hashes here.

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

Hashes for odrx_py-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0897c0d68b19ac50fb11c8b12354585c411143ff2536a43627eabf1007f53134
MD5 a6cc1f15c4dc74c10d4a8fd18a8d911b
BLAKE2b-256 0b9a2d701fd7d4393021d95b30e1b56c16354f8392954dd1bd1cacf812af9cba

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