[Python-Dev] fullOfEels, assistant program for writing Python extension modules in C (original) (raw)
Hugh Fisher hugo.fisher at gmail.com
Thu Feb 11 04:28:41 EST 2016
- Previous message (by thread): [Python-Dev] PEP 515: Underscores in Numeric Literals
- Next message (by thread): [Python-Dev] fullOfEels, assistant program for writing Python extension modules in C
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] PEP 515: Underscores in Numeric Literals
- Next message (by thread): [Python-Dev] fullOfEels, assistant program for writing Python extension modules in C
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]