Описание тега pybind11
NonePybind11 is a C++/Python package offering seamless operability between C++11 and Python, in the spirit of “boost::python” but without the heavy-duty Boost dependency.
pybind11 — Seamless operability between C++11 and Python.
The following core C++ features can be mapped to Python:
- Functions accepting and returning custom data structures per value, reference, or pointer
- Instance methods and static methods
- Overloaded functions
- Instance attributes and static attributes
- Many more…
In addition to the core functionality, pybind11 provides some extra goodies:
- Python 2.7, 3.x, and PyPy (PyPy2.7 >= 5.7) are supported with an implementation-agnostic interface.
- It is possible to bind C++11 lambda functions with captured variables. The lambda capture data is stored inside the resulting Python function object.
- pybind11 uses C++11 move constructors and move assignment operators whenever possible to efficiently transfer custom data types.
- Still more…
Supported compilers:
- Clang/LLVM (any non-ancient version with C++11 support)
- GCC 4.8 or newer
- Microsoft Visual Studio 2015 or newer
- Intel C++ compiler v15 or newer
See documentation at https://pybind11.readthedocs.io/en/latest/index.html