Foreign Function Interface for Python calling C code based on CFFI. It creates a Python C extension module.
Foreign Function Interface for Python calling C code.
Have a look at examples/sdl_example.py.