pybind11

C++11 to Python binding library for seamless interoperability

brewmacoslinux
Try with needOr install directly
Source

About

Seamless operability between C++11 and Python

Commands

pybind11

Examples

Get pybind11 include directory for compilation$ python3 -m pybind11 --includes
Compile a C++ extension module with pybind11$ c++ -O3 -Wall -shared -std=c++11 $(python3 -m pybind11 --includes) example.cpp -o example$(python3-config --extension-suffix)
Check pybind11 version and configuration$ python3 -c 'import pybind11; print(pybind11.get_cmake_dir())'