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.6.8.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.6.8-cp313-cp313-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.13Windows x86-64

pysupertuxkart2-0.6.8-cp313-cp313-manylinux_2_34_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

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

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

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

Uploaded CPython 3.12Windows x86-64

pysupertuxkart2-0.6.8-cp312-cp312-manylinux_2_34_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

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

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

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

Uploaded CPython 3.11Windows x86-64

pysupertuxkart2-0.6.8-cp311-cp311-manylinux_2_34_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

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

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

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

Uploaded CPython 3.10Windows x86-64

pysupertuxkart2-0.6.8-cp310-cp310-manylinux_2_34_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pysupertuxkart2-0.6.8-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.6.8.tar.gz.

File metadata

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

File hashes

Hashes for pysupertuxkart2-0.6.8.tar.gz
Algorithm Hash digest
SHA256 78615695ec3f497f9579212c2fe2742641a90a2f5e62aedd3324511ee4c38722
MD5 f8856463033317cb4ab96972fae65d34
BLAKE2b-256 a2f482129b7d3ad68e9bf7941bf88c756c3690c4fc2fe9e0293d7d85d4292242

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8.tar.gz:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 15119746bdcc66683e2fbfae43dcddec42ee9dd6436ef120156539498532819e
MD5 3080ebc6b1db78e4a966c9e6c5523a46
BLAKE2b-256 0b96278ab6f4ccfb4dbf3f4d395b3a1922b17266743b529b510de50ed7fe8b4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp313-cp313-win_amd64.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b02fc53c6799d12f3f2a45e646464a437738ad38fe8f75831474140e2e60f724
MD5 a87980f5b20350629be6c96e0dd88041
BLAKE2b-256 da61c33aee7e925a8bf76466b6c2985b2294368c37f8a4e61f0c74caa1a0f9c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp313-cp313-manylinux_2_34_x86_64.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 4d639b920339d64b165fb7e896f0e66434fb5db2b031bf512c3b0cf48869e6f5
MD5 c61293a2eb51e6e4de00c46395ce22f9
BLAKE2b-256 4b9ca7d8873077bf208647f7c548b61bc9ada93263b137e4ca4f7766a09fbfaa

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp313-cp313-macosx_10_13_universal2.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 45fb12c106221bd8f6ff8fe3c6e6b59a444b0ab0b0479065ac0ec36d708aeace
MD5 3a51079f5ad74da7c1e02c3ef32f2b6a
BLAKE2b-256 9bf91eae0eb509b348779bf57bb44bde17326e42480cac63080bc65f0706ae09

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp312-cp312-win_amd64.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1f18cad8ac6a4e2c543e03d6bb211a898c6d425cc3058f9140df8f5fcde41f44
MD5 bacb42b3f64218ae5f65692d689fbee5
BLAKE2b-256 1d1fa59c93e6c33ef667d2667d685d17eca0347d5b3ef73cca510567a2c95666

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp312-cp312-manylinux_2_34_x86_64.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 13aae6151a46011929a5c7a2a11c49b7d7b174061ed33ed8837c052077772199
MD5 52e821b3ef7e5f512f42f6a24cd822df
BLAKE2b-256 72cd0e97fbc63b05efd5809f188bf880eec78fb32841c640ff554bb42289671d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp312-cp312-macosx_10_13_universal2.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cf26336ac0bc9e903dde450bbbe6fac40b61dea0d63504cd2f39cc98bc934a0c
MD5 89ab4337a2d557e5848f72c269346c77
BLAKE2b-256 ad9a4e81b03d2b7ed686d5b9ac9b219259f61a36b68a2bccbf47ebce7a1bef9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp311-cp311-win_amd64.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d0f4e8d2160f66657c83b8f3ac673b5a09ae717043445c5febd514929de7211f
MD5 a4a76ff146c027cbbf86c73fca3e3ebe
BLAKE2b-256 2db6973c6af5eaeda7da3bb96d51aeb928fa54574f357ebaaa6a9d05cec10c4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp311-cp311-manylinux_2_34_x86_64.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp311-cp311-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 e6c8af74aa5a135a776d9111f4381e11fce88fdfb1c74461db3c8a9fa0bd8b7b
MD5 57ad9b6ab22bb4205fe5dd186ff36baf
BLAKE2b-256 0feb7f36ba02635ebe8c615161d9fdc6935d0a890fe8702de6ea97b592e55014

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp311-cp311-macosx_10_11_universal2.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 631191b4b873afb35fabfe1a4e58ab68a57e4c994794bd8dc5df60bd8b470780
MD5 2fcdf9d78e0d27bb6ca98c063b5d7ce5
BLAKE2b-256 1783f856b6edf23a3266610c23d731b37a4dcd184d4cf2e27514541898450655

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp310-cp310-win_amd64.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 661eeae99db0c5388cfbab8a7e038f932ce98ef04c730b4d8d8b6518209532e5
MD5 e8d53d86ad66b2dab1265f3d4e2410bd
BLAKE2b-256 f4da73a2f6420c5b3f8f27d4809b9ccaa9f0a070f3c7550f719100fa89725934

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp310-cp310-manylinux_2_34_x86_64.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.8-cp310-cp310-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 bc2895c98e52c200d988ff760890e2642aa7aebe5cf87b5ae6cfcd7d16b8f57f
MD5 1588bc65e89269454d2c0ee74cc24be1
BLAKE2b-256 b9248a43b4ba625f63272bd1a51042c809eaa0633b28c0bc1480cf3e46582133

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.6.8-cp310-cp310-macosx_10_11_universal2.whl:

Publisher: wheels.yml on bpiwowar/pystk2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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