1 Resposta
+ 4
Have you heard about ctypes - a foreign function library for Python? It provides C/C++ compatible data types, and allows calling functions in DLLs or shared libraries. It can be used to wrap these libraries in pure Python.
It's as simple as: Write your C++ code, compile it as a shared library. Use ctypes to prepare a wrapper for your created library and run! Voila!