Async Python wrapper for the RhythmTyper API
Project description
rhythmtyper.py
An async Python wrapper for the RhythmTyper API.
Installation
pip install rhythmtyper
Usage
import asyncio
from rhythmtyper import RhythmTyperClient
async def main():
async with RhythmTyperClient() as client:
# Users
profile = await client.users.get_profile("user_id")
topbar = await client.users.get_topbar("user_id")
results = await client.users.search("username")
# Beatmaps
beatmap = await client.beatmaps.get("beatmap_id")
ranked, has_more, cursor = await client.beatmaps.get_many(status="ranked", limit=12)
diffs = await client.beatmaps.get_difficulties("beatmap_id")
# Leaderboards
global_lb = await client.leaderboard.global_pp(limit=50)
country_lb = await client.leaderboard.country_pp("DK", limit=50)
map_lb = await client.leaderboard.beatmap("beatmap_id", difficulty="Hard")
asyncio.run(main())
License
MIT
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
rhythmtyper-0.1.3.tar.gz
(7.4 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 rhythmtyper-0.1.3.tar.gz.
File metadata
- Download URL: rhythmtyper-0.1.3.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ecfa0f1d7f76327771110881ff68d63b5043ca7fd115ae8607791f39a69e066
|
|
| MD5 |
27726c966059a0027ad3fd3aa6e53684
|
|
| BLAKE2b-256 |
522049b8569e2005595a7621baccdc1dfaf9df9ee4a34094657fc878224ceda0
|
File details
Details for the file rhythmtyper-0.1.3-py3-none-any.whl.
File metadata
- Download URL: rhythmtyper-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27fead04f283d603061c12c9d5650934ee73c0b82f43e61912cfd21b38e721ea
|
|
| MD5 |
0d884c4a1637af92b3ea1813eb33dba6
|
|
| BLAKE2b-256 |
a858cd1c5d855166f9014741ea10a78fb689837c26d3d260ca97e11f249ee4f4
|