Generates a Cython wrappers for C++ classes from description dictionaries. This module relies heavily on the type system to convert between C/C++, Cython, and Python types in a seamless way. While this module does not explicitly rely on the auto-describer, it sure helps! The functions in this module are conceptually easy to understand – given class descriptions they generate strings of Cython code – their implementations do a lot of heavy lifting.
author: | Anthony Scopatz <scopatz@gmail.com> |
---|
Generates a cpp_*.pxd Cython header file for exposing C/C++ data from to other Cython wrappers based off of a dictionary description.
Parameters : | desc : dict
exception_type : str, optional
|
---|---|
Returns : | cpppxd : str
|
Generates a *pxd Cython header file for exposing C/C++ data to other Cython wrappers based off of a dictionary description.
Parameters : | desc : dict
|
---|---|
Returns : | pxd : str
|
Generates a *.pyx Cython wrapper implementation for exposing a C/C++ class based off of a dictionary description. The environment is a dictionary of all class names known to their descriptions.
Parameters : | desc : dict
env : env, optional
|
---|---|
Returns : | pyx : str
|