-
We currently have a scenario where our primary application is developed in C++. However, we are interested in extending its functionality using Python, not just as a scripting language, but to create plugins that use libraries such as numpy and other dependencies. It seems that most of the documentation for libraries such as pybind11, nanobind and Cython focuses primarily on binding C++ libraries into Python environments, with limited information on the reverse process. We have already managed to load a Python module from C++ by embedding Python via `Python.h'. We have also been able to dynamically create modules to call C++ functions from Python. However, this approach involves a significant amount of boilerplate code, so we are looking for a more streamlined solution that still meets our requirements. It would be greatly appreciated if someone could confirm whether our desired approach is feasible and, if so, whether nanobind supports this functionality. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Nanobind does not support this functionality, and it is (intentionally) considered out of scope to avoid feature creep (it is a "nano" project) |
Beta Was this translation helpful? Give feedback.
Nanobind does not support this functionality, and it is (intentionally) considered out of scope to avoid feature creep (it is a "nano" project)