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.4.tar.gz (37.0 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.4-cp314-cp314t-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.14tWindows x86-64

pysupertuxkart2-0.7.4-cp314-cp314t-manylinux_2_34_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.34+ x86-64

pysupertuxkart2-0.7.4-cp314-cp314t-macosx_10_15_universal2.whl (22.3 MB view details)

Uploaded CPython 3.14tmacOS 10.15+ universal2 (ARM64, x86-64)

pysupertuxkart2-0.7.4-cp314-cp314-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.14Windows x86-64

pysupertuxkart2-0.7.4-cp314-cp314-manylinux_2_34_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

pysupertuxkart2-0.7.4-cp314-cp314-macosx_10_15_universal2.whl (22.3 MB view details)

Uploaded CPython 3.14macOS 10.15+ universal2 (ARM64, x86-64)

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

Uploaded CPython 3.13Windows x86-64

pysupertuxkart2-0.7.4-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.4-cp313-cp313-macosx_10_13_universal2.whl (22.3 MB view details)

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

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

Uploaded CPython 3.12Windows x86-64

pysupertuxkart2-0.7.4-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.4-cp312-cp312-macosx_10_13_universal2.whl (22.3 MB view details)

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

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

Uploaded CPython 3.11Windows x86-64

pysupertuxkart2-0.7.4-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.4-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.4-cp310-cp310-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.10Windows x86-64

pysupertuxkart2-0.7.4-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.4-cp310-cp310-macosx_10_11_universal2.whl (22.4 MB view details)

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

File details

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

File metadata

  • Download URL: pysupertuxkart2-0.7.4.tar.gz
  • Upload date:
  • Size: 37.0 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.4.tar.gz
Algorithm Hash digest
SHA256 4b806f9ed12400d3ee08f914abd2bc8114828aa8cd79ddd1bf2a015676c03819
MD5 741b247e1d66e334f429c9ec72177b51
BLAKE2b-256 2f291c1055e68dcf27f54429d6be928bfd9732e22087d65c108a012cf94d2626

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.4.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.4-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 5ee1e65ba3081a35e247a226c1736020b9dcbc83089ef7b2736cf8414b916ee1
MD5 7a1c2e4f507bb42664e6af7b607df980
BLAKE2b-256 0763f1a3da2d17fd5eba0860e09219ec554b9daa209629c4b470b5c41c2d3b23

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.4-cp314-cp314t-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.4-cp314-cp314t-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp314-cp314t-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 421e0687a7d79db024138746b7fbdd74132856a7e16270100ef63194beeac74b
MD5 cfcf983e4fa240bae82f271c899e65a2
BLAKE2b-256 a0019a8abe10a155e9c95417576a75cc7a51485d969cbbe032f5deef63fb2bbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.4-cp314-cp314t-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.4-cp314-cp314t-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp314-cp314t-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 73f7c871453f6e46db0f3b68aade9b68f1306a7c9fd9737b6d26ff9869788d6b
MD5 91d8a3de610e1e1e47e5e3ae682b670e
BLAKE2b-256 c7c44fe429875581faf6b5f243cff117355f96de4569d8a6677e02d1140601b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.4-cp314-cp314t-macosx_10_15_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.4-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 4dce64ab2d18d1dd666907fc0ae3b0880e0625f6c6642af9367189d116e6c34e
MD5 3ac157deb953d9c4c6e9c26a0163e20a
BLAKE2b-256 ceb8c798952c7a57937b0a44daac9e3bd9ca4f15e76dbf8cba37e5a13570f0b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.4-cp314-cp314-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.4-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c659f09637607bb1e8493b44f4f73f2edd5f7e9c44586ac55b0bc528e6e9625e
MD5 a0a42a78379d8f55393dd420aadb0f58
BLAKE2b-256 269f038bc810ef72fc28e218c2590a8701f09fe2e424155af433745735c2c750

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.4-cp314-cp314-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.4-cp314-cp314-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 e7a9b12fc992ef27ca506cf7eee6a0a726882ac8688b9877051f3b233cd29822
MD5 ef14d10aa92bf9377ee03d60ab40139e
BLAKE2b-256 e4104cec97ee4878f8ddcbe439031518efba03ee0581a2947b23feb9a335a42c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysupertuxkart2-0.7.4-cp314-cp314-macosx_10_15_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.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e917574917c2a551a2f831f958b850de21afa7308c706f8716a55ac3c3370b82
MD5 ffd8c23c2a865e16af713ff878364260
BLAKE2b-256 c3f17c381ac72a502c8bf3e133cbecf94d813d9dbde10fcb705d481ab98315c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4db3250315d7ae7c1970bc9e2874a0a6482d5374afcf8d08ab1340675bd85707
MD5 88676e0239c475a289a89af122057c01
BLAKE2b-256 2497edbca45affd53beda3f61bfc74da0789cc3c141ce65cd66e6018248b0b8a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 4ada8acc20de28683e349b758bd4d94eeb25e6eeffbc939e4bd50bf1b59dd9b8
MD5 df085ceef8851fe70e6350dbd43de94d
BLAKE2b-256 617aa73034de4df941a3943487098ea16046bf619c454d578cc809440de5365e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 50de06810005c461c02ab4b76ea86442ab881f5a34978e365dcfc908c6cd0688
MD5 1acaaae2c78cd8d719eac1396611ea7e
BLAKE2b-256 6f92a29cda2c3f8a0b3e8332a4c6e852b1f5badb264676e2f2a6097a59570634

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4fda0bf145f461631ad2d4e7ea9f7222758b4f18a444635ad6326663e0c5a94d
MD5 a62febe516ac04146710410f517741b8
BLAKE2b-256 934ed9d3659f71d65127ce11ced684787a41af073ff520554685c9372e01333a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 7e0ea9504901da8c9d1d90d8b029b5ec2d53e759aacecf5673d8cd170ced9050
MD5 b2b9170a16dec97789d20ddc5709ad3a
BLAKE2b-256 83176a8774b8506b0243de59dbbb25b9675b2de43e04dfe375982b4138dae7d8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5a05b1f842ffe1d4c3250f5ee9126b141ebf717b9f7e3ac2a0c36a4cfee64226
MD5 813dd5ef46f76d786fd3eab597ac28cc
BLAKE2b-256 b691a7778a0e2048ac8e647e330ef02b149d4c9c41599652a6bc0a9dc1fe3e23

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2b1230c9c71bd5fb66744afc1cec9109bef77e2686a71fdb3a21c336aa499ad2
MD5 c81c7ef0509b7ce0a2a8c0eecf6ceb3e
BLAKE2b-256 05e06c8715b03f06957749977d0fa131d47bf3282cf28167e774c35a2d145f87

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp311-cp311-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 b2309b5dd8f765111c1257ac14b8bea050e9eef59a48f01787911b49917aeab6
MD5 472e8addd5b56b04a23e072f9ce511a9
BLAKE2b-256 d8d3e269031d3a01095cb0a4f509759a44ccc18c7409e2a9cc024e5a0497f258

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1d068ae5ec548acad7b5614c1ebb65b45b4c377f99a1a856b1143057b947f5bd
MD5 5998855d52092bbc7bb60bc5d85d2f3f
BLAKE2b-256 a7ecfdc7d2b17d50aa89f1199582e045d258d2acc5e9c87fa6a422eca0aace26

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9e96ee0738554c55809afab3027c9d27386240d23f6393b3e7c5394e468669a7
MD5 98edfc8c14d322d4d08ea693f277445f
BLAKE2b-256 2acb8012db19e9f70a839d1fdc1ba2ee16521f4e79157b9ef49592998d561154

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.7.4-cp310-cp310-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 4e730c05558e3203b1aa94bf5a3e1b8ca94f375d7ded9f01a397e843aa117114
MD5 4705ed30da34547133d3b2769d29eceb
BLAKE2b-256 e5ce9d914e26a77185df12b4c0f07aac6ff3ff5c0b92f0bd0807f18a9e596a0e

See more details on using hashes here.

Provenance

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