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.5.tar.gz (7.5 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.5-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rhythmtyper-0.1.5.tar.gz
  • Upload date:
  • Size: 7.5 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.5.tar.gz
Algorithm Hash digest
SHA256 ce17c95b815e06cf17cda76f9dbd0cf21a5e355e64c6d55701e69ee0725ff788
MD5 a4cdaa16e85c8b547945e93bee417776
BLAKE2b-256 010f8c2b2de28c29b6f364a60a63c63ad2d09044e0448c2d4292b056b4d663e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rhythmtyper-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1fc34af4e456ad69eb2207ec9443aef264fe3be0e5a1743b184b2a74e053bd81
MD5 be7fd16045be14323a8d6d71e2842d70
BLAKE2b-256 00c22c0b63e601b14d0a52977a5ebac19411125f0f4e480fe14ccbdb305576e8

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