/cpp_in_python

Examples for how to use ccmpy library, running cpp code in python

Primary LanguagePython

cpp_in_python

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.

setup

pip install cppyy

run

python3 example.py

Author

Kevin Tang