This project is an example on how to setup a pybind11 build with Poetry.
Lookup at the build.py
and pyproject.toml
files for reference. The source code of the C++ extension is under the pybind11_extension
folder [link to explanation].
Additionally, the repo contains a few samples and benchmarks on how to use pybind11 to release the GIL and achieve true parallellism in Python with multithreading. Useful if you want to execute CPU bound tasks [link to explanation].