cppyy: Seamless Python-C++ Interoperability
2025-07-16
cppyy is a runtime Python-C++ bindings generator that allows calling C++ from Python and vice-versa. It achieves high performance, low memory usage, cross-inheritance, and callbacks without language extensions or intermediate languages. Features include runtime template instantiation, automatic object downcasting, and exception mapping. Based on the Cling C++ interpreter, cppyy enables dynamic, interactive mixing of C++ and Python features and even supports modern C++ libraries like Boost. It works with CPython and PyPy, and is optimized for large-scale projects, excelling in performance and memory management.
Development
Bindings