This repo has examples for how to use ccmpy for calling C++ in Python.
cppyy is an automatic Python-C++ bindings generator, based on Cling, for calling C++ from Python and Python from C++, designed for large scale programs in high performance computing that use modern C++, fully including the latest standard, C++17. ccmpy allows running cpp code in python.
pip install cppyy
python3 example.py
Kevin Tang