Skip to main content

A library that allows interacting with the SuperTuxKart API

Project description

SuperTuxKart API Wrapper for Python

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

A library that allows for interacting with teh SuperTuxKart 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.1.tar.gz (9.9 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.1-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: supertuxkart_py-0.2.1.tar.gz
  • Upload date:
  • Size: 9.9 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.1.tar.gz
Algorithm Hash digest
SHA256 602b456ced05ef4d1bcf73ce571865eb5211cf9ee0a5fefa0d31e6b44a75db16
MD5 ca19af84259fda4a70acfa8faf85ffce
BLAKE2b-256 8b978fef722878a654c18529dedfd51ed032125be71772099e2cdbbd4d41b32c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supertuxkart_py-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0df244a131d4d329e24070f50fb81664b457990c2b0dcd3c876d28bda5f08f35
MD5 4378120aba09d55fa1e03cf9b5c3a6af
BLAKE2b-256 000e53ba8e1faa2424d8d24be20a8d59adf1beafd0f4c31f9dfc1989189ed676

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