mirror of
https://codeberg.org/linaSTK/stk.py.git
synced 2026-01-17 00:02:43 +00:00
Test for i18n purpose
| .woodpecker | ||
| supertuxkart | ||
| .gitignore | ||
| example.py | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| requirements.txt | ||
| test.py | ||
SuperTuxKart Online Service API Wrapper
A library that allows for interacting with teh SuperTuxKart Online Service ("STKAddons") API.
Install
You can install supertuxkart.py using the following command:
pip install supertuxkart.py
... or if you want to use the git/development version:
pip install git+https://codeberg.org/linaSTK/stk.py
Example:
>>> import supertuxkart
>>> client = supertuxkart.SuperTuxKartClient(userid=513714, token="<token here>")
>>> # You can also use username/password auth, though
>>> # userid/token is prioritized if both specified
>>> client = supertuxkart.SuperTuxKartClient(username="Sayori", password="password")
>>> session = client.account.authorize()
>>> session
<SessionInfo token=xxxxxxxxxxxxxxxxxxxxxxxx username=Sayori realname=Sayori userid=513714 achieved=[2, 3, 5, 7, 8, 9]>
License
This project is licensed under the MIT license.