PyBindGenA free Python based tool that will allow developers to generate Python bindings for C/C++ code | |
Download |
PyBindGen Ranking & Summary
Advertisement
- License:
- GPL
- Price:
- FREE
- Publisher Name:
- Gustavo J. A. M. Carneiro
- Publisher web site:
- http://code.google.com/u/gjcarneiro/
- Operating Systems:
- Mac OS X
- File Size:
- 230 KB
PyBindGen Tags
PyBindGen Description
A free Python based tool that will allow developers to generate Python bindings for C/C++ code PyBindGen is an open source Python tool that is geared to generating C/C++ code that binds a C/C++ library for Python. PyBindGen does so without extensive use of either C++ templates or C pre-processor macros. PyBindGen 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.NOTE: PyBindGen is developed, licensed and provided under the terms of the GNU Lesser General Public License. Here are some key features of "PyBindGen": · Generates clean C or C++ code, almost as clean as what a human programmer would write; · Generation is controlled exclusively by a Python API · No limited command-line interface or yet another interface definition file format; · Optional support for robust error handling · Don't traceback on errors, keep wrapping a subset of the API as much as possible; · Generated code is self contained and does not depend on any library · Except for Python itself and the library you're trying to wrap, of course; · C functions and C++ classes / structures; · Direct access to structure/class fields; · Even has support for class static member variables; · Many different C++ object ownership transfer options, smart pointers, and reference counting; · "in", "out", and "inout" parameters and, consequently, multiple return values; · C++ virtual methods, which can be implemented in Python subclasses; · Overloaded functions/methods/constructors; · Automatic type narrowing on pointer-to-object return values, using C++ RTTI; · C++ implicit conversions in parameters of functions, methods, and construtors; Requirements: · Python
PyBindGen Related Software