skip to navigation
skip to content

pysdl2-cffi 0.1.0

Package Documentation

Latest Version: 0.8.0

An SDL2 wrapper made with cffi. Faster on pypy.

Adapted from headers & wrapper functions from
libSDL2, and

My goal is to preserve a flat, faithful-to-C view of the SDL API, then make
it more Pythonic by removing the SDL_ prefix, renaming each SDL_FunctionName to
sdl.functionName, leaving the enum's capitalized. The wrapper will also
convert "out" parameters (most of the time (int *) or other pointer arguments
are passed) to returned tuples, and it will convert SDL_GetError() to an

It does not yet do all of these things.

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.
File Type Py Version Uploaded on Size
pysdl2-cffi-0.1.0.tar.gz (md5) Source 2014-05-20 52KB
pysdl2_cffi-0.1.0-py27-none-any.whl (md5) Python Wheel py27 2014-05-20 51KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 43 downloads in the last week
  • 980 downloads in the last month