Skip to main content

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

Project description

osuAPI

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 git+https://github.com/circleguard/osu-api

To use:

from osuAPI import OsuAPI

api = OsuAPI("API_KEY")
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.2.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

ossapi-1.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ossapi-1.2.0.tar.gz
  • Upload date:
  • Size: 3.0 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.2.0.tar.gz
Algorithm Hash digest
SHA256 dbaf6a794b9dc4d8ad8cd4d382070fe0082e545b23adccd8353dce2809b77e90
MD5 6b5e69ea7c0edcaf903aea8f190f0ad8
BLAKE2b-256 1bbd5fa36aa849030e7ac7cb932e0474286af4f15bb074c0350f8c44b33b45d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ossapi-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b10e2a4db446b1e98a5e8901ce9cb22514dc329dfe0e46418b5d8ecac686f14
MD5 f6c4a415f5e9ffc9a60f0fb62ccb4963
BLAKE2b-256 b4f1c5d61a9f4a3df6a90c3e0ed1a2376b47554b794e886d84aacd96bd251e1e

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