Skip to main content

A thin python wrapper around the osu! api, delegating error handling and rate limiting (among other things) to the user.

Project description

PyPI version


ossapi (so called to avoid pypi naming conflicts with the existing osuapi) is a minimal python wrapper for the osu! api. This wrapper was created for, and is used in, the circleguard project. Passed keys (endpoint parameter key/value pairs, not the api key) are checked to make sure the api will accept them, and that all required keys are present. No attempt is made to check http status codes or retry requests that fail.


To install:

pip install ossapi

To use:

from ossapi import ossapi

api = ossapi("API_KEY")
json = api.get_replay({"m": "0", "b": "1776628", "u": "3256299"})
# either strings or ints will work. Returns something like `{"content":"XQAAIA....3fISw=","encoding":"base64"}`

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ossapi, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size ossapi-1.3.0-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ossapi-1.3.0.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page