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

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.

Usage

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.

Source Distribution

ossapi-1.3.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

ossapi-1.3.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file ossapi-1.3.0.tar.gz.

File metadata

  • Download URL: ossapi-1.3.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

File hashes

Hashes for ossapi-1.3.0.tar.gz
Algorithm Hash digest
SHA256 c714b44444b92aa164ee8b01fb8ad261a85374512785ce6bb689a5d97ddf6f69
MD5 b1fe5a6e94034bde87b22c908f77f4d5
BLAKE2b-256 33240ca0d808c4a03195c10c8c3ada62432b7b614a4af745d0e0655adb817e91

See more details on using hashes here.

File details

Details for the file ossapi-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: ossapi-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

File hashes

Hashes for ossapi-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e067848b05f0bff4abb2083c38438a80bae27685c652b49e85228c99f9907a7
MD5 cb1bd3bacaa709b87be9d1b47ce72856
BLAKE2b-256 4678703fd0518c599c25f1877b28f170a4286f407efabd20c8d5a8cac9f21c3c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page