I want to create simple prototype-grade Python bindings to evaluate various C/C++ libraries.
I need to experiment on Linux, Windows and Mac.
Some examples of the libs that I need bindings for include a mix of C or C++ libraries such as things like:
There are several candidates out there, such as swig, ctypes, Boost.Python, pybindgen and questions were already posted here on the topic though the focus has been mostly on performance. Extending python - to swig, not to swig or Cython
I care more about getting something simple and quickly than about performance.
What would you recommend to pick for creating bindings quickly?
ctypes fits the bill pretty well for C. It's ridiculously easy to make thin wrappers around C libraries with it.
Have you considered Cython? It lets you bind to static libraries, and write your bindings in a language that looks like python.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With