Boost.Python is really a very powerful library, but if you are working with code written in plain “C” - you’ve got a problem. You have to create wrappers for almost every function or variable.
In general, if you want to work with plain “C” code from Python you don’t have to create any wrapper - you can use ctypes package.
The idea behind “ctypes integration” functionality is really simple: you configure Py++ to expose address of the variable\return value, and than you you use ctypes from_address functionality to access and modify the data.
Obviously, this approach has pros and cons:
In my opinion, the better way to go is to “mix”:
Py++ is able to
The functionality is going to be developed father and I intend to add the following features: