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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.10Windows x86-64

pysupertuxkart2-0.6.0-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.0-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.0.tar.gz.

File metadata

  • Download URL: pysupertuxkart2-0.6.0.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.0.tar.gz
Algorithm Hash digest
SHA256 48b6e0b63cf0622467411ce12bb1b44844a2a7be70564f01b1200a9675b106f2
MD5 ac7228c1f9bd860e17c3aa24fe9ded17
BLAKE2b-256 f0fa6c3a3b71b7ebbeb91600320a1f488eab788a95669a176505841ebf43329f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 62e18500ef6d6eee1740041be6a90991558b2a6177ffe59d160f8f5c815bfa4a
MD5 d0d9c85719b8dda8636755613d4cf17e
BLAKE2b-256 fefbe67fc5e7a7bb81f69b28258ba8a07adfa88f099e3b796a06077f9542be12

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 46de53ca14e308a1b2c33f5bdcc34cc0396aaf541bbc6d6967983c8395597243
MD5 498b4b5c32821e5fa372f4f7de540406
BLAKE2b-256 eaff14af422c154ef7a3fdb58472cbc59957bcacdacf0e3ebeb9a562bc711da5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 da929c807e138842c76019ec1e6ca1c4a58a103fc6842a3b26e5c73514da63ec
MD5 4cb99eea9ef32cd65a8f621a4b98eefb
BLAKE2b-256 f7dcf5e3a22896727ee74092800a92dc0f069cb6571e35b7250e62c9918d7685

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e9164ced5af9cd00f84338c537a56c791f1a853f4ac0dc17ce540f54d485bc6b
MD5 5d43f0ba90dd9a806abff2b951927a18
BLAKE2b-256 853839ccf2df8563e9f8f6328e365fa25cd6c2c493536180bcbfd14de8570b8d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 192debbe20c3a717fd09d27330c0b0bc632d419d72a56c43f65a72a1122fb2b7
MD5 937ff8a1028f56bdcf37d8b76c428b06
BLAKE2b-256 a46f56fad73aa13bbbed402a5bf880fa14f949d6ee85f51e1a8e156c5f670e1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 a9aca4a633182b13aef2ea03b4e1939a200cb2e2ce9ef26a73990495d691e8f6
MD5 94a132ae8ffd2c3e3561b9ec188d5f22
BLAKE2b-256 4aaf1e7323d87735c13875002e3db8a68271475e9977873e4af30548620af52f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6aec8551f24f0cc685bb720df3aecf696e3b07bf26ad6f1dfa5c1f14537823b1
MD5 2ab2a3b59077a8aba46afe2b17003d22
BLAKE2b-256 563881d933296dbcf34c40335f8ae6110d1db9f55bfedc9bd1be3f3e578495d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8f505735efc61488e3bdca89c9156258f8288859fd366dca28b151cd50fbe894
MD5 6a1bfcfc331f55209a9e2f7fda08496c
BLAKE2b-256 a9d471fc733d88d5206d9b149be70bef0e426481bedfd481f957bed51aa6bc8a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp311-cp311-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 1edc2cacc2827b2dd85cbd40da2979117c4890dc7a211bcc48f6c22b7d83f5cc
MD5 0a8fdfbaf4c60f6db5334edb2fa15869
BLAKE2b-256 4d4a6aceaa23feea5e81b73323daf326c11b51163c824f2487ea9cb3e5eb8e1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 de19831090d8815b29f115e478ef6a53c29f8401934842381c5a5c063f96cb00
MD5 a0eee0d79e013148d9e4999fd285b2f0
BLAKE2b-256 3082d22059a8ad1ef737c632e0d585425b4fd4ce46e2c8bfc705f4bb1ef6ad1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 70e39fbd2c0319da7a6c63cce39b3bdbf62c0afff8a492f0029a2972cb1d2c2f
MD5 9cb389df1c7beff07d07a4de1b2a069e
BLAKE2b-256 e81156dc95c992c967a0262de501e467592c58bd8887aa3af0660d89dae84744

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysupertuxkart2-0.6.0-cp310-cp310-macosx_10_11_universal2.whl
Algorithm Hash digest
SHA256 462dd49d5b016832d292df0720f29029d3f409922035e77caa123bd17c315c4b
MD5 3525ce2f438aeb9693ae130d824ad73c
BLAKE2b-256 4cfaac1caf0d198a345419da626afcc13d3e8d177205697d40ad610f54c20526

See more details on using hashes here.

Provenance

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