PyBindGen is a Python bindings generator; it is geared to generating C/C++ code that binds a C/C++ library for Python.
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 extended with Python plugins. The generated code is almost as clean as what a human programmer would write.
It was designed to be an alternative to some other bindings generators out there, including:
- Boost::Python, which uses C++ templates extensively, which are difficult to understand or extend, and which generates relatively large Python modules;
- SWIG, which makes extensive use of macros, generates very ugly code, and is itself written in C++, therefore difficult to extend;
- Python SIP, which is also written in C++;
- The PyGtk code generator, which doesn't support wrapping C++ code, and is not very flexible;
All bugs Latest bugs reported
Bug #1470589: overloading.py not compatible with python2.6
Reported 6 hours ago
Bug #1443379: __len__binding don't work in 0.17.x versions
Reported on 2015-04-13
Bug #1395108: wrapping code uses "new" when gcc compiler is invoked.
Reported on 2014-11-21
Bug #1381493: Autogenerate docstring
Reported on 2014-10-15
Bug #1376168: version file generation takes newest revno from bazaar, but should take working directory revno
Reported on 2014-10-01
All questions Latest questions
Pybindgen auto-generate docstring
Posted on 2014-09-30
typedef and pointer to pointer with pybindgen
Posted on 2014-09-02
Please, write example about operator=
Posted on 2014-07-31
Default value of int type pointer gives an Error
Posted on 2014-07-30
How to wrap a container of custom type?
Posted on 2014-05-24