Use Pybind11 library in Python I have just created a library with Pybind11 from the C++ side: I did it with CMake. Here example.cpp