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.2.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

ossapi-1.2.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ossapi-1.2.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for ossapi-1.2.3.tar.gz
Algorithm Hash digest
SHA256 5c76d891dc9178f5608d064102b18fb11a1e5bd3a7be2e43f4f21580d2f36888
MD5 600815045ccbca8b17928c10f670d76e
BLAKE2b-256 f9e673c0418b98659448bd95e165758359bfdb9a1a237933cf58807b7ee65571

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ossapi-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for ossapi-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 64b062b47286c1249c326fd330bad6a5efb485275e76d42af601e0dff007d155
MD5 c9aa267d53d26940728858be3e6037ad
BLAKE2b-256 e05d98e1966dd6e0997b8729fcc4d922ab11588a375ed2b827dd2026d76535d3

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