4 ms·
I need to create Python bindings for a C++ library and after a brief survey of the available options was planning on using SWIG (http://www.swig.org/tutorial.ht
by jrussino 7y ago
I need to create Python bindings for a C++ library and after a brief survey of the available options was planning on using SWIG (http://www.swig.org/tutorial.html http://www.swig.org/tutorial.html). How does this compare?
- mochomocha 7y agoSWIG is not always smooth to use, and you need to write interface files manually which in my experience are hard to debug. In Cppyy it looks like you don't have to do any of that.
- orbifold 7y agoUse pybind11 super easy to get startet with and reasonably easy to automate with libclang if your C++ API is simple.