Metadata-Version: 2.1
Name: osu-apy-v2
Version: 0.1.1
Summary: small osu api v2 helper
Home-page: https://gitlab.com/Eulentier161/osu_apy_v2
Author: Eulentier161
Author-email: eulentier161@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: pyaml (>=21.10.1,<22.0.0)
Requires-Dist: requests (>=2.28.0,<3.0.0)
Project-URL: Repository, https://gitlab.com/Eulentier161/osu_apy_v2
Description-Content-Type: text/markdown

handles refreshing the access_token and stores a mapping of known osu player names and ids in a sqlite database.\
read the [osu!api v2 Docs](https://osu.ppy.sh/docs/index.html)

```console
pip install osu-apy-v2
```

```py
from osu_apy_v2 import OsuApiV2

api = OsuApiV2(application_id, application_secret)
user_id = api.get_user_id("whitecat")
res = api.get(f"/users/{user_id}/scores/best?mode=osu&limit=1")
print(res.json())
```

