Python Forum

Full Version: C++ python embedding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am looking for a good package / library to extend a C++ application with python scripting. I would need both ways calls, from python to C++ functions, objects methods and classes static functions, as well constants and enumerations. The ideal candidate would be something like squirrel-sqrat where the executable itself would export functions/classes/constants/enumerations (not an extension).
I need the app itself to load the py script and then call into it. Then the script to be able to call back into C++ exported functions, instantiate objects and access constant variables and access enumeration types.. The ideal candidate would be something like in this example, using squirrel: https://github.com/circinusX1/scrite/blo...r/main.cpp. (see Sqrat:: methods)


Thank you.