Does anyone know a spiffy way to use C header files in Python? For example I have a C program that includes a global variable:
typedef struct ImageInfo {
This was mentioned on SO yesterday; I haven't had a chance to check it out more thoroughly yet, but I'm meaning to. The pycparser, a "C parser and AST generator written in Python".
pycparser
https://github.com/eliben/pycparser