Skip to main content

Python wrapper for the Osu apiv2.

Project description

Losuapi

Python wrapper for the Osu apiV2

Important

Development in progress


Setup

  • Register an Oauth application on the osu account settings page.
    • Do not set an Application callback URL, the current version of this package does not need one.

creating client_id and client_secret variables example

CLIENT_ID = "registerd client id"
CLIENT_SECRET = "registered client secret"

Basic usage

example:

import losuapi

# instantiate OsuApi object
api: losuapi.OsuApi = losuapi.OsuApi(client_id=CLIENT_ID, cleint_secret=CLIENT_SECRET)

# lookup_beatmap method returns a losuapi.Beatmap object
beatmap: losuapi.Beatmap = api.lookup_beatmap(beatmap_id=1920615)

Working endpoints

from losuapi import OsuApi

OsuApi.lookup_beatmap(beatmap_id, checksum, filename)
OsuApi.user(username, mode, key)

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

losuapi-0.0.3.tar.gz (20.9 kB view details)

Uploaded Source

File details

Details for the file losuapi-0.0.3.tar.gz.

File metadata

  • Download URL: losuapi-0.0.3.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for losuapi-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ba2fd2bba5de131110736725575338075071c1070ef4352f62b05a5cc17a9208
MD5 122b4730b25c87b0c0b69fde350c85ab
BLAKE2b-256 2495efddd9398c8b9fb6a095bba2eb28d8af0341149d5fc0e1c15747e2667f72

See more details on using hashes here.

Supported by

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