Several people have created scripts to parse header files and automatically produce Cython bindings.

cython-codegen

The is a tool called *cython-codegen* or *xml2cython.py* written by David Cournapeau - download it with git (a version control tool, apt-get install git):

git clone http://github.com/cournape/cython-codegen

It requires gcc_xml and codegenlib from ctypeslib (apt get install python-ctypeslib)

Related information:

fwrap

Automatically generate bindings for fortran files: http://fwrap.sourceforge.net/

cwrap

https://github.com/enthought/cwrap

h2pxd

Script by Evan Buswell http://groups.google.com/group/cython-users/browse_thread/thread/67c3c4443a9c98ca

AutoPxd (last edited 2011-09-02 16:33:10 by robertwb)