PyBindGen is a Python module that is geared to generating C/C++ code that binds a C/C++ library for Python. It does so without extensive use of either C++ templates or C pre-processor macros. It has modular handling of C/C++ types, and can be easily extended with Python plugins. The generated code is almost as clean as what a human programmer would write.
It can be downloaded from:
Bug reports should be filed here:
=== pybindgen 0.12 ===
- Now we can catch C++ exceptions and translate them into Python - New API to add container iteration powers to wrapped C++ classes - Unary minus operator support (J. Michael Owen) - CppMethod: is_pure_virtual=True should imply is_virtual=True - More polish for numeric operators with non-class right operand - Virtual methods regressions fixed - gccxmlparser: don't try to wrap private/protected operators - MSVC compilation fix - unsigned long type handlers (J. Michael Owen) - tp_len/__len__ works now with overloaded methods (J. Michael Owen) - Add foreign_cpp_namespace option to Function wrappers - Misc. cleanup and bug fixes