Hacker News new | ask | show | jobs
by jrussino 2604 days 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). How does this compare?
2 comments

SWIG 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.
Use pybind11 super easy to get startet with and reasonably easy to automate with libclang if your C++ API is simple.