Hi all,

On 23.11.2018 13:01, anatoly techtonik wrote:
I always forget that it is not trivial to create Python binding for a C++
program. There had been several attempts over the past decade, but
I lost track of them. The only project that I know is used in production
is https://wiki.qt.io/Qt_for_Python/Shiboken for Qt bindings.

If Python people are able to use at least something from Python and
there is a catchy tutorial about how port you favorite missing functions
from C++ API to Python, then I am sure more people will follow. I mean
I would definitely try this given a lil bit more free time. =)

I sometimes wrap pieces of C++ code to call them from Python.
Of the solutions if tried, the easiest I came across was PyBind11. It was a part of Boost to interface C++ to Python and became a whole library of its own. Needless to say it is pretty well coded.

Checkout the library page : https://github.com/pybind/pybind11
Also, I did setup a few examples to answer questions from colleagues and friends, you can have a look at my github page : https://github.com/cjaques/pybind_examples
I wrote a quick article about PyBind, it could be interesting (although everything's on the github page), see this page --> http://christianjaques.ch/pybind-is-great/

I'd be happy to help anyone trying to wrap C++ for Python.