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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

pysupertuxkart2-0.7.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.7.1-cp312-cp312-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pysupertuxkart2-0.7.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.7.1-cp311-cp311-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pysupertuxkart2-0.7.1-cp311-cp311-macosx_10_11_universal2.whl (22.4 MB view details)

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

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pysupertuxkart2-0.7.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.7.1.tar.gz.

File metadata

  • Download URL: pysupertuxkart2-0.7.1.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.7.1.tar.gz
Algorithm Hash digest
SHA256 372bd22e706485485516e5b7afea50f418140e5d57ae7a68681234e06eb0ba18
MD5 4794b401c30d184f16a33aee27bf72cb
BLAKE2b-256 3bd142e2deafd2cf013042363e1274cd70a3a25a2d148418b3c0d2112852ee42

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1.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.7.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b117026dcb83bfae6dfe12c81c5cf9dd881f858b996605d30c47761dddf0b382
MD5 351bb314b6f48740b926d34676d368c0
BLAKE2b-256 a970fe63d028c0768b4afd936de54ad4efee06d467859b5fdac455c72f8dc5ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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.7.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fd94831ac6dd0f9913c6eaeeba0f28ac5d53d173eabe3e2e5a7e84f9bcf400b0
MD5 d6326f8f5e010c0fdf086051f1143f29
BLAKE2b-256 a8d062a6c9df6082eabe9e0b0e1eaa7f8ba9aa76ac9d1bcc61e2dce12b11526b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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.7.1-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 b4b31440837067a74e962f732f648f8a9c2f38db882fada580c6a3908f27d290
MD5 762ece25fa2edc4d2367c995bdaf5a0f
BLAKE2b-256 ca2d91aa2dc7f389eedca9facce3d6aee5808b858aab6554216a5721c83910e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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.7.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8d56abf1033dcf44cb0dc827930d4303678ab6ee79ff3355c463bef7f86a4af4
MD5 a02a25ad3f3ed00ad0b26fcc86323ede
BLAKE2b-256 1484da706467972fcf58346a5ad8bebf7768f4a8634fd3f9a71bc3163fe5aad1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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.7.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 05b25709f21ab4dbc394059227e5d011593673512681a0f60afef661e94890b1
MD5 47ac8308342911328d97ba3ce377dcfb
BLAKE2b-256 736a00574ac8a801f739e8fb973242b70df9692a3b735a39cde3f9c0e1c496cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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.7.1-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 0e18a9115752590d3cdf19c3eba2454cf28a0a50249eb5a9e348991806544672
MD5 0222dacfe4825bcb1d8c45db5b1b51dc
BLAKE2b-256 42e929e3712ca7a0b40d5b62bf4c7c17bbf9134512aad4ec4a737b53308d2fc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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.7.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d5f02a35500d1ac03bae84f193278d4b4118bdc4b85787432be295a3de242d21
MD5 f303dc2b6d4456abf90e105e89d432f3
BLAKE2b-256 ca9b05794f6cb0c9256c64965e3f8d9415a7f9a513a735aee4ec53b203fdd058

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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.7.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 865059f115af38b18d25d276c5e5fb5da00172e83e5d592da21d03ffb105499e
MD5 ce2fbc0f178691bff505d1a980180483
BLAKE2b-256 2bbe86eb71772fa4aa6d365c7a522f27fc9f1fd8defb98ab94e71b28f0df31fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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.7.1-cp311-cp311-macosx_10_11_universal2.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp311-cp311-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 d2239efb4b98f3ef3fdb258d1c1ec8935e4eb1e7d2a06b2f3ffe85591a877a6e
MD5 164a25f441d59d716b4ad8dbe314c370
BLAKE2b-256 b100a4e13d4aa425459a1d1c070aed664a63ae94cfa02e2a5d21172d635b5a7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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.7.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6736e761fa1b289db5a24ee6a36bc664935ccabd79615e973a8f53f88305b1cf
MD5 b53cdccd3db8abea331bd9c3d23603d8
BLAKE2b-256 7362fdf3d6422c2054fa6a7829d8b4fd8cb86a4ca3259a985a27cbac7d192115

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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.7.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9c1680e327bf3d1b4e6ee762ab5776dd73acdb244f9af661161e3a7bc3d21a52
MD5 b9b6816df5faa4743bfd2d745b59e87b
BLAKE2b-256 c4ff82f8d81110b3d9323152cdd811007c220b7ef5776a752330951cc2bcb416

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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.7.1-cp310-cp310-macosx_10_11_universal2.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.1-cp310-cp310-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 e0bc622620ea3c5b79dd87fd631b8f3e1e5c498f127c21755009dfea611f950d
MD5 35ef7a951a21bde4d97f2dad5947833b
BLAKE2b-256 0b1c99d9ee58a4917d95047652ffa2e6993057f213c7338d2dca18362e63d897

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.1-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