https://github.com/aermoss/pysdl3
A pure Python wrapper for SDL3.
https://github.com/aermoss/pysdl3
ctypes python sdl3 sdl3-gpu sdl3-image sdl3-mixer sdl3-net sdl3-rtf sdl3-ttf wrapper
Last synced: 3 months ago
JSON representation
A pure Python wrapper for SDL3.
- Host: GitHub
- URL: https://github.com/aermoss/pysdl3
- Owner: Aermoss
- License: mit
- Created: 2024-08-14T17:48:27.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-26T11:03:09.000Z (4 months ago)
- Last Synced: 2025-03-30T19:05:18.673Z (4 months ago)
- Topics: ctypes, python, sdl3, sdl3-gpu, sdl3-image, sdl3-mixer, sdl3-net, sdl3-rtf, sdl3-ttf, wrapper
- Language: Python
- Homepage: https://pysdl3.readthedocs.io
- Size: 20.2 MB
- Stars: 46
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# PySDL3
[](https://github.com/Aermoss/PySDL3)
[](https://github.com/Aermoss/PySDL3/actions/workflows/run_tests.yml)
[](https://pypi.org/project/PySDL3)
[](https://pypi.org/project/PySDL3)
[](https://pypi.org/project/PySDL3)
[](https://pypi.org/project/PySDL3)PySDL3 is a pure Python wrapper around the SDL3, SDL3\_image, SDL3\_mixer, SDL3\_ttf, SDL3\_rtf, SDL3\_net and SDL3\_shadercross libraries.
It uses the built-in ctypes library to interface with SDL3 while providing an **understandable** function definition with docstrings, argument names and type hints, like this:[](https://github.com/Aermoss/PySDL3/blob/main/gpu.py)
## Getting Started
Just run one of the following commands in a terminal:
```bash
# To install the latest stable version from PyPI:
pip install --upgrade PySDL3# To install the latest development version from GitHub:
pip install --upgrade git+https://github.com/Aermoss/PySDL3.git
```## Requirements
There are no additional requirements since PySDL3 will download all the necessary binaries for you on the first run.*SDL3 binaries will be downloaded from [PySDL3-Build](https://github.com/Aermoss/PySDL3-Build) repository, if you want to use your own binaries please read the [documentation](https://pysdl3.readthedocs.io/en/latest/install.html#custom-binaries).*
### Supported Platforms:
* **Linux** (AMD64, ARM64)
* **Windows** (AMD64, ARM64)
* **Darwin** (AMD64, ARM64)## Documentation
The [documentation of PySDL3](https://pysdl3.readthedocs.io) can be found at: https://pysdl3.readthedocs.io.*If you can't find what you are looking for there, it is highly recommended to look at the [official documentation of SDL3](https://wiki.libsdl.org/SDL3) since everything is defined exactly the same.*
## License
PySDL3 is available under the MIT license, see the [LICENSE](https://github.com/Aermoss/PySDL3/blob/main/LICENSE) file for more information.