nanobind

Lightweight C++/Python binding framework for seamless interoperability

brewmacoslinux
Try with needOr install directly
Source

About

Tiny and efficient C++/Python bindings

Commands

nanobind

Examples

Create a new nanobind project with basic C++ binding setup$ nanobind create myproject
Compile C++ source with nanobind Python bindings$ nanobind compile --source module.cpp --output module.so
Generate binding stubs from C++ header files$ nanobind generate --header myclass.h --output binding.cpp