Skip to main content

Python bindings for SuperTuxKart

Project description

Python SuperTuxKart 2

Documentation PyPI version

This is a modified version of the free SuperTuxKart racing game with Python bindings. A lot of code was borrowed from PySTK, with some main differences:

  • The code is now quite close to SuperTuxKart (no code deletion) so that SuperTuxKart updates can be easily applied
  • The assets are now downloaded in a "cache" directory (no more data package)
  • (project) races can be run in parallel (e.g. for Reinforcement Learning experiments)

The current source code is based on the SuperTuxKart 1.4 branch. The PySTK changelog can be found in this file.

Licence

As STK and PySTK, PySTK2 is released under the GNU General Public License (GPL) which can be found in the file COPYING in the same directory as this file.

SuperTuxKart

SuperTuxKart is a free kart racing game. It focuses on fun and not on realistic kart physics. Instructions can be found on the in-game help page.

The SuperTuxKart homepage can be found at https://supertuxkart.net/. There is also our FAQ and information on how get in touch with the community.

Hardware Requirements

To visualize the races (not mandatory), make sure that you computer's specifications are equal or higher than the following specifications:

  • A graphics card capable of 3D rendering - NVIDIA GeForce 470 GTX, AMD Radeon 6870 HD series card or Intel HD Graphics 4000 and newer. OpenGL >= 3.3
  • You should have a dual-core CPU that's running at 1 GHz or faster.
  • You'll need at least 512 MB of free VRAM (video memory).
  • System memory: 1 GB
  • Minimum disk space: 700 MB
  • Ideally, you'll want a joystick with at least 6 buttons.

License

The software is released under the GNU General Public License (GPL) which can be found in the file COPYING in the same directory as this file.

3D coordinates

A reminder for those who are looking at the code and 3D models:

SuperTuxKart: X right, Y up, Z forwards

Blender: X right, Y forwards, Z up

The export utilities perform the needed transformation, so in Blender you just work with the XY plane as ground, and things will appear fine in STK (using XZ as ground in the code, obviously).

Building from source

Building instructions can be found in INSTALL.md

Python bindings

  • pystk.[hc]pp: manage races
  • state.[hc]pp: observable and actions
  • pyckle.[hc]pp: pickly states
  • fake_input_device.[hc]pp: a fake input device used to control players
  • utils.[hc]pp, views.hpp
  • buffer.[hc]pp

PYSTK_LOG_LEVEL can control the log level (debug, verbose, info, warn, error, fatal)

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

pysupertuxkart2-0.5.1.tar.gz (36.9 MB view details)

Uploaded Source

Built Distributions

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

pysupertuxkart2-0.5.1-cp313-cp313-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.13Windows x86-64

pysupertuxkart2-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl (17.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

pysupertuxkart2-0.5.1-cp313-cp313-macosx_10_13_universal2.whl (22.2 MB view details)

Uploaded CPython 3.13macOS 10.13+ universal2 (ARM64, x86-64)

pysupertuxkart2-0.5.1-cp312-cp312-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.12Windows x86-64

pysupertuxkart2-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl (17.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pysupertuxkart2-0.5.1-cp312-cp312-macosx_10_13_universal2.whl (22.2 MB view details)

Uploaded CPython 3.12macOS 10.13+ universal2 (ARM64, x86-64)

pysupertuxkart2-0.5.1-cp311-cp311-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.11Windows x86-64

pysupertuxkart2-0.5.1-cp311-cp311-manylinux_2_34_x86_64.whl (17.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pysupertuxkart2-0.5.1-cp311-cp311-macosx_10_11_universal2.whl (22.3 MB view details)

Uploaded CPython 3.11macOS 10.11+ universal2 (ARM64, x86-64)

pysupertuxkart2-0.5.1-cp310-cp310-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.10Windows x86-64

pysupertuxkart2-0.5.1-cp310-cp310-manylinux_2_34_x86_64.whl (17.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pysupertuxkart2-0.5.1-cp310-cp310-macosx_10_11_universal2.whl (22.3 MB view details)

Uploaded CPython 3.10macOS 10.11+ universal2 (ARM64, x86-64)

File details

Details for the file pysupertuxkart2-0.5.1.tar.gz.

File metadata

  • Download URL: pysupertuxkart2-0.5.1.tar.gz
  • Upload date:
  • Size: 36.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysupertuxkart2-0.5.1.tar.gz
Algorithm Hash digest
SHA256 ab808a750c3ea8ba227280cd4db130a2a171c76c51f2c8d564866ba0193b3f1e
MD5 9653f675164222afcc6ec97b9fdeee8c
BLAKE2b-256 5ddc424a1a7d54949ae230c62b9dcae9d724d748a88819851dcefdaf41ebf01a

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 910d794384503a17303d80f83d4d35152e4e7504a504ca519d074e9815dabbd2
MD5 ef139cc1adf343a3ad0fa3af94b0cead
BLAKE2b-256 ed26477dcbc3889689913f883f131e6b89b0ebccf6eec4d86fea3d61529f40e6

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 be5f773f595f973cd3cb7cdcff9e4d5d8e1b44db5a0e338bc1b2041b2c27611e
MD5 427eaea9b17c32095b96ffb17328bd5c
BLAKE2b-256 0fd3739d196838c4024a425d6875073e4d28a4afc30b37e00593bfc3fae95f73

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 b31dcac420f2f10895f1f88de02c07ad2bfb569449c9fd882f333c88f9904b8f
MD5 be7cb91fcd1cd366871d515a4e15ad32
BLAKE2b-256 e907a22a4d961b9c41674207026608a3c4b599fbc96170a2eaa2813ebbcd484e

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4e5cd257cba27133b02db91def7c6b17ea74f85cfb239c2ddd076e772c2992e7
MD5 1c43bed1dca58ab907e1413714d8625e
BLAKE2b-256 0aea007b37b412be131178c43a362cf2aa00171a43eec2d2ab5428d5739263c1

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 78e11772f291696b7207259c9b5a490b1cd8f213a0bf374f90fa0de95052a100
MD5 99be020abd3fbabce9c4edea54fe902b
BLAKE2b-256 3e762d7f142ad12822dff49c3fb3b6afa711000a324d0466bb686411f3690fd6

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 3c10be75aadccdf26f21591648a7e4f63d8b671271953f87a1cede371019a3e1
MD5 78b52e866460618faf932923b237594a
BLAKE2b-256 56494f0ff09f9e265c8a2147c74ae67abbba0462f29cc1efeb4128f08160c296

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 40ba553d6df6f6f13cb6d9b4c33b96db937d858944421d628ba7f67e306157de
MD5 93e40b8ac2ae3308c6e4c23480ce06b8
BLAKE2b-256 6747cd4775771a5a4f8337d802c033633d506ee31abda4e113c475a4af2691ab

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 81c312842c1a452a753092c48caf711df5e407306d76a5ab3c73d7fe401c061c
MD5 500b1c7d994f68b3c18aede596040e42
BLAKE2b-256 689adeafbb3079b62852d521d6ff86e65344398caed884b90989d66f41b81735

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp311-cp311-macosx_10_11_universal2.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp311-cp311-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 cf23c17b7779f6c8c98b57ab9d6ce3347b4c7d272b309ebc551b6ea63e9b92e2
MD5 a7f397d40174c78466d9e391abc76fc3
BLAKE2b-256 6e8564870c8e42085da2ae1d179fc2b7a219f1ca471ec9dd50eae7403d0362f2

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f78fddaec2d1f91d2df1d37d88cb68623b267b395310be52ffe21c56b55615b7
MD5 046811afa25f28e5ff7ffbf92e43e4b2
BLAKE2b-256 a244cbdeb5e8dad79a3b64314f341243742f134d5fb5723cd8cb8a55b298666e

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e55844722ca195fb88fcebfbf4a1e0d52ce59c0f901cbda72f5d5f965d0b27b0
MD5 8869a6bd78fd4982c3dc0e21d19ece42
BLAKE2b-256 f8fb913a6b5cbf9afb89bdd1b5b5c66aec55b4120f4bfc1228f47484cc2411d0

See more details on using hashes here.

File details

Details for the file pysupertuxkart2-0.5.1-cp310-cp310-macosx_10_11_universal2.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.5.1-cp310-cp310-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 a1338e9a43d2c18c21cd9d36f3d047418e1f5071ab69659e4496fac57cf677bc
MD5 6aa0665d528b51dec49213f97114354a
BLAKE2b-256 8eb720d8275b2ac182f2eb2ec1d0efc4d614245042fc2c57a6bbcb1a4595baeb

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