The pybind11 make python calling any c++ function easier
https://pybind11.readthedocs.io/en/stable/basics.html
Also we can invoke python script from c++ as well:
https://pybind11.readthedocs.io/en/stable/advanced/smart_ptrs.html
Other alternatives:
boost python
https://www.boost.org/doc/libs/1_84_0/libs/python/doc/html/index.html