Skip to content

qlibp/pybind11-project-example

 
 

Repository files navigation

An example of C++ project with pybind11 bindings

The primary purpose of this project is to test pybind11-stubgen functionality.

It can be used as a C++ python module template.

Project layout

./include/cpp_library/     # includes (.h) of C++ project
./src/                     # sources (.cpp) of C++ project
./cpp_library_bindings/    # pybind11 bindings of C++ project
./external/                # root for 3rd party libraries sources (pybind11, gtests, etc.)

Build module shared library

Needed only for testing/debug

mkdir build
(cd build ; cmake .. )

Install python

The build step will be invoked automatically during install process

python setup.py install  # regular python install is working

About

A minimal self-contained pybind11 project example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 61.7%
  • Python 29.8%
  • CMake 8.5%