Exposing a C++ API to Python

前端 未结 5 1335
夕颜
夕颜 2020-12-07 14:20

I\'m currently working on a project were I had to wrap the C++ classes with Python to be able to script the program. So my specific experience also involved embedding the Py

5条回答
  •  醉酒成梦
    2020-12-07 14:33

    pyrex or cython are also good and easy ways for mixing the two worlds.

    Wrapping C++ using these tools is a bit trickier then wrapping C but it can be done. Here is the wiki page about it.

提交回复
热议问题