Test for i18n purpose
Find a file
2026-01-15 13:49:36 +00:00
.woodpecker require python 3.10 and above only 2025-04-08 21:47:24 +08:00
supertuxkart aes-gcm-128bit-tag is a bool value 2026-01-15 13:49:36 +00:00
.gitignore update 2025-07-15 21:14:55 +08:00
example.py format code [skip ci] 2025-12-31 11:36:19 +08:00
LICENSE Initial commit 2025-04-06 21:20:14 +08:00
pyproject.toml fix for users without achievements 2026-01-04 14:43:22 +08:00
README.md fix for users without achievements 2026-01-04 14:43:22 +08:00
requirements.txt add aiohttp to requirements 2025-06-05 21:47:22 +08:00
test.py chore: update unit test 2025-07-16 09:22:16 +08:00

SuperTuxKart Online Service API Wrapper

Python Version from PEP 621 TOML PyPI - License Gitea Stars Gitea Last Commit

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.