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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rhythmtyper-0.1.4.tar.gz
  • Upload date:
  • Size: 7.3 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.4.tar.gz
Algorithm Hash digest
SHA256 c7045f36b03f3358de70e741cdb7b7a455e21d4b1805da86d5498b2389c2853b
MD5 985f7c07211b875ef85377c130d47e62
BLAKE2b-256 e0b0210e4454fc0b2e9d4779dfff69e1f6cf437e98963d74ea299a4876da9c23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rhythmtyper-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e29c5080702f6d2a5d7ae411b29b1784d6b2e33ef3f4db44035908cc3a055b37
MD5 9bff60933ed573646e7c79d2c1200bfe
BLAKE2b-256 719f83ee8a401fcf56c315997ac7fbd67320056051948f651a00506ee15df3a2

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