Skip to main content

circleapi

Yet another python wrapper for osu! api

Take a look at the "examples" folder for typical use cases.

Disclaimer

circleapi was made with my needs in mind (token management, massive concurrency, easy logging, async support), unless you know what you're doing I would highly recommend using another wrapper (aiosu, ossapi)

Main features

  • Built with high concurrency in mind (thread safe, coroutine safe)
  • Optional async support
  • Reusable Oauth2 token (api v2)
  • Automatic Oauth2 token refresh (api v2)
  • Built-in rate limiting
  • Built-in thread support
  • Strict response validation (msgspec)

Installation

$ pip install circleapi

Development setup

$ git clone https://github.com/miinorii/circleapi.git
$ cd circleapi
$ python -m venv venv
$ venv/bin/activate # linux
$ venv/Scripts/activate.bat # windows
$ pip install -r requirements.txt
$ pip install -e .

Supported endpoints

  • osu api v2
    • beatmap_lookup
    • get_user_beatmap_score
    • get_user_beatmap_scores
    • get_beatmap_scores
    • get_beatmaps
    • get_beatmap
    • get_beatmap_attributes
    • get_score
    • get_own_data
  • osu.lea.moe
    • get_ranked_ids
    • get_loved_ids
    • get_ranked_and_loved_ids

Release files for circleapi 2024.1.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for circleapi 2024.1.6.1
File Size Uploaded
circleapi-2024.1.6.1.tar.gz 14.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for circleapi 2024.1.6.1
File Interpreter ABI Platform
circleapi-2024.1.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.6 kB

Release files / circleapi-2024.1.6.1.tar.gz

Download URL circleapi-2024.1.6.1.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
27bf496bc8cb4e086f0bc8db96eef71bf58b044f1b6b9cfb5b1382634574e226
BLAKE2b-256 checksum
How to use checksums
a3d200983d4fb140458461ae5678d086ab237a120beab556aef77680dff31b78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / circleapi-2024.1.6.1-py3-none-any.whl

Download URL circleapi-2024.1.6.1-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ca12c767f75ab483a0686cc1fc859adfc1bf26bb79f7637d1b8904a7d3b5a95
BLAKE2b-256 checksum
How to use checksums
a3e6441fb960d131c0c76c6608d62a98c483c618036f92f2e0fba33d227de2fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page