Skip to main content

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.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distributions

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

rhythmtyper-0.1.2.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

rhythmtyper-0.1.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file rhythmtyper-0.1.2.tar.gz.

File metadata

  • Download URL: rhythmtyper-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for rhythmtyper-0.1.2.tar.gz
Algorithm Hash digest
SHA256 411385b509be0226b3063b09f5c468b502d509035fd26be20e5b3d69fb966509
MD5 502374415bb37218c9f7f238689420ea
BLAKE2b-256 f892d64ba5eecea8e8e709f21fe093ce1d9e442ff98beb83f9e89152e32c347c

See more details on using hashes here.

File details

Details for the file rhythmtyper-0.1.2.0-py3-none-any.whl.

File metadata

  • Download URL: rhythmtyper-0.1.2.0-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

Hashes for rhythmtyper-0.1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4299328627e7fb6d4c72236ad4b4e80bcc7236fecb1a584ac1dba942f6364815
MD5 5cd55e701cc8f733681c17b0731e5ff3
BLAKE2b-256 fd0d74c4d37ae9bffac3a7cdc84d29bd1418de95b6bc5de3b19a596b6a9283be

See more details on using hashes here.

File details

Details for the file rhythmtyper-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: rhythmtyper-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for rhythmtyper-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 86558d1b2781b1ab356962e9f1f774967c2024d8b3d478c61278db84224506dd
MD5 20e0a63cfae73f6e7ce777c52481d3c1
BLAKE2b-256 1534e2b8a0f16cedf5202cb270889a9892b4370fabe149618052c8806e7fe0f3

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