skip to navigation
skip to content

Not Logged In

pysdl2-cffi 0.5.0

SDL2 wrapper with cffi

Package Documentation

Latest Version: 0.8.0

pysdl2-cffi is a Python wrapper for SDL2 written using cffi, featuring:

  • A cffi + dlopen interface to the underlying SDL2 libraries.
  • Automatically generated, consistent helper functions for SDL2, SDL_image, SDL_mixer, and SDL_ttf that hide most allocation and dereferencing.
  • Useful docstrings on every function, including the C function signature and (for SDL2 only) the library’s original doxygen documentation reformatted as Sphinx restructured text.
  • A small collection of libSDL2’s original example / test programs converted to Python using Eric S. Raymond’s ctopy.

The goal is to provide a flat, consistent, faithful-to-C binding with some more-Pythonic renaming and conveniences.

This wrapper won’t contain anything that doesn’t directly translate to part of the library’s API. The goal is to be a dependency for something like pygame, not a replacement.

This library is developed on Linux and OS X; not yet tested on Windows.

This library is licensed under the GPLv2 or (at your option) any later version.

Install with pip, or download from

Source hosted at

Documentation hosted at

File Type Py Version Uploaded on Size
pysdl2-cffi-0.5.0.tar.gz (md5) Source 2014-09-04 183KB
pysdl2_cffi-0.5.0-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2014-09-04 106KB
  • Downloads (All Versions):
  • 112 downloads in the last day
  • 512 downloads in the last week
  • 2266 downloads in the last month