Skip to main content

A wrapper for the SuperTuxKart Online Service (STKAddons) API

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supertuxkart_py-0.2.2.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

supertuxkart_py-0.2.2-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file supertuxkart_py-0.2.2.tar.gz.

File metadata

  • Download URL: supertuxkart_py-0.2.2.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for supertuxkart_py-0.2.2.tar.gz
Algorithm Hash digest
SHA256 785d50ba8057ed88d2aca1709fa788c6bfde711ae3c590aeb449a9729de66ee5
MD5 596c8ef81e621061db134a9d5429bafe
BLAKE2b-256 1858bbe85cd118721f98e1502290a2f7ae73f02f563a5a5abd13683c63c9b01f

See more details on using hashes here.

File details

Details for the file supertuxkart_py-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for supertuxkart_py-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e32de884c2219e83c3a3a6154336a71c64f3de10fcf47f58541cdeb6e29ada9e
MD5 6825b4609a6f3dd8c99ee3b34c75cc9b
BLAKE2b-256 a8fffd6da73f1dfd26b8b05cecaef72aab3527fc793626aa4ec3acaa371e537b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page