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_beatmap_score(beatmap_id, user_id, mode, mods)
OsuApi.user_beatmap_scores(beatmap_id, user_id, mode)
OsuApi.beatmap_scores(beatmap_id, mode, mods, type)
OsuApi.beatmaps(beatmap_ids)
OsuApi.beatmap(beatmap_id)
OsuApi.beatmap_attributes(beatmap_id, mods ruleset, ruleset_id)
OsuApi.user_kudosu(user_id, limit, offset)
OsuApi.user_scores(user_id, type, include_fails, mode, limit, offset)
OsuApi.user(username, mode, key)
OsuApi.ranking(mode, type, filter, country, cursor, spotlight_id, variant)
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(22.4 kB
view details)
File details
Details for the file losuapi-0.0.5.tar.gz
.
File metadata
- Download URL: losuapi-0.0.5.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c32eb816a110748df8143cfe2f1e9d7ac21320311eec1d64e3833a02d15a5103 |
|
MD5 | 78bcce4cde712e6c0c88c3e069882059 |
|
BLAKE2b-256 | 96cf516a8398875a5726b8f5f09025956ad7b3322bb410e1fb11ee2b6730ad31 |