Losuapi
Python wrapper for the Osu apiV2
pip install losuapi
poetry add losuapi
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)
# instantiate async compatible OsuApi object
asyncApi: losuapi.AsyncOsuApi = losuapi.AsyncOsuApi(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_beatmaps(user_id, Type, limit, offset)
OsuApi.user_recent_activity(user_id, limit, offset)
OsuApi.user(username, mode, key)
OsuApi.users(user_ids)
OsuApi.ranking(mode, Type, filter, country, cursor, spotlight_id, variant)
OsuApi.spotlights()
Metadata
Release files for losuapi 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| losuapi-0.2.2.tar.gz | 13.9 kB | Without provenance | Details for losuapi-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| losuapi-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for losuapi-0.2.2-py3-none-any.whl |
Total release size: 35.3 kB
Release files / losuapi-0.2.2.tar.gz
| Download URL | losuapi-0.2.2.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
206ce6bd99e665380f33a09ac5a07cd9ebabb92c6a2c721f96c00bcd26fa187a
|
|
BLAKE2b-256 checksum How to use checksums |
1fe76c9c5253222356abd01d6441d7fd66e175b4ee6fd02736123a544c7c8253
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.11.2 Windows/10
|
Release files / losuapi-0.2.2-py3-none-any.whl
| Download URL | losuapi-0.2.2-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6d14e816f050c304246db33816c2aea3991c83400af00b57ab854e10d5ae90f
|
|
BLAKE2b-256 checksum How to use checksums |
022f1fd5785e2b4782739fdac177b3e79bbbb40257538b0a568a3b9d3cc71532
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.11.2 Windows/10
|
Security for losuapi 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.