A string to be mixed in that defines the PyInit function for a library.
A string to be mixed in that defines PydMain, automatically registering all functions and structs in the passed in modules.
A string to be mixed in that defines all the necessary runtime pyd boilerplate.
The name of the dynamic library, i.e. the file name with the .so/.dll extension
The list of modules to automatically wrap for Python consumption
Code to be inserted after the call to module_init
Code to be inserted before the call to module_init
Necessary boilerplate for pyd.
To wrap all functions/return/parameter types and struct/class definitions from a list of modules, write this in a "main" module and generate mylib.{so,dll}: