Python ctypes wrapper around SDL2
PySDL2
PySDL2 is a pure Python wrapper around the SDL2, SDL2_mixer, SDL2_image, SDL2_ttf, and SDL2_gfx libraries. Instead of relying on C code, it uses the built-in ctypes module to interface with SDL2, and provides simple Python classes and wrappers for common SDL2 functionality.
Installation
PySDL2 is easy to install and integrate within your own projects. To install or update to the latest version, simply run one of the following commands in a terminal:
# Install latest stable version from PyPI
pip install -U pysdl2
# Install latest development verion from GitHub
pip install -U git+https://github.com/marcusva/py-sdl2.git
Note: If installing on Python 3 on a computer where both Python 2 and 3 are installed, replace pip
with pip3
in the above commands.
Requirements
In order