[Python-Dev] fullOfEels, assistant program for writing Python extension modules in C

Hugh Fisher hugo.fisher at gmail.com
Thu Feb 11 04:28:41 EST 2016


I've written a Python program named fullOfEels to speed up the first
stages of writing Python extension modules in C.

It is not a replacement for SWIG, SIP, or ctypes. It's for the case
where you want to work in the opposite direction, specifying a Python
API and then writing an implementation in C. (A small niche maybe, but
I hope it isn't just me who sometimes works this way.)

The input is a Python module specifying what it should do but not how,
with all the functions, classes, and methods being just pass. The
output is a pair of .h and .c files with all the boilerplate C code
required: module initialization, class type structs, C method
functions and method tables.

Downloadable from
https://bitbucket.org/hugh_fisher/fullofeels

All feedback and suggestions welcome.

-- 

        cheers,
        Hugh Fisher


More information about the Python-Dev mailing list