This package provides simple and convenient interface to Py++ functionality.
Bases: pyplusplus.module_builder.module_builder.module_builder_t
This class provides users with simple and intuitive interface to Py++ and/or pygccxml functionality. If this is your first attempt to use Py++ consider to read tutorials. You can find them on web site.
| Parameters: |
|
|---|
adds code that exposes some constants to Python.
For example: .. code-block:: python
mb.add_constants( version=‘“1.2.3”’ ) # or constants = dict( version:‘“1.2.3”’ ) mb.add_constants( **constants )
will generate the following code:
boost::python::scope().attr("version") = "1.2.3";
Writes module to fixed number of multiple cpp files
| Parameters: |
|
|---|
Creates code_creators.bpmodule_t code creator.
| Parameters: |
|
|---|
already_exposed solution is pretty good when you mix hand-written modules with Py++ generated. It doesn’t work/scale for “true” multi-module development. This is exactly the reason why Py++ offers “semi automatic” solution.
For every exposed module, Py++ generates exposed_decl.pypp.txt file. This file contains the list of all parsed declarations and whether they were included or excluded. Later, when you work on another module, you can tell Py++ that the current module depends on the previously generated one. Py++ will load exposed_decl.pypp.txt file and update the declarations.
writes module to multiple files
| Parameters: |
|
|---|
Writes module to a single file
| Parameter: | file_name (string) – file name |
|---|
Bases: pyplusplus.module_builder.module_builder.module_builder_t
| Parameter: | files (list of strings or parser.file_configuration_t instances) – list of files, declarations from them you want to export |
|---|
Writes module to single file
| Parameter: | file_name (string) – file name |
|---|
This file contains algorithm, which calculates from exported symbols, all declaration that should be exposed too.
Bases: object
base class for different module builders.
This function will print detailed description of all declarations or some specific one.
| Parameter: | decl (instance of decl_wrappers.decl_wrapper_t class) – optional, if passed, then only it will be printed |
|---|