Cppyy – Automatic Python-C++ bindings
cppyy.readthedocs.io
Cppyy – Automatic Python-C++ bindings
1–10 of 25 posts
Re: Cppyy – Automatic Python-C++ bindings
#2this looks awesome! Got to try it out on some of my code
Re: Cppyy – Automatic Python-C++ bindings
#3This is super interesting but if I am looking to bring C++ into my Python code base it would be because performance is important enough to do so. With that in mind I am not sure how this stacks up against compiled half steps like Cython or foreign function interfaces likes ctypes or CFFI instead.
Re: Cppyy – Automatic Python-C++ bindings
#4There is also the less known https://github.com/google/clif (but not automatic)
Re: Cppyy – Automatic Python-C++ bindings
#5Does anyone know of any well known tools that generate bindings in other languages e.g., Python from C++ code?
IIUC, this tool does the opposite i.e., generate C++/other language bindings from Python
Re: Cppyy – Automatic Python-C++ bindings
#6How does this compare to pybind11?
Re: Cppyy – Automatic Python-C++ bindings
#7How does this compare to pybind11?
If you have a C++ project, you want to have Python bindings, and you don't want to share your header files, pybind11 is the way to go.
If you want to / can share your header files, cppyy is a very convenient way of being able to call your C++ code from Python. I'm not sure if there is a way to use it without headers.
Re: Cppyy – Automatic Python-C++ bindings
#8This is super interesting but if I am looking to bring C++ into my Python code base it would be because performance is important enough to do so. With that in mind I am not sure how this stacks up against compiled half steps like Cython or foreign function interfaces likes ctypes or CFFI instead.
If you have a Python code base and are looking to speed up some part of it, Cython is the way to go. Pybind11 and cppyy are more for cases where you have a bunch of C++ code that you want to provide a Python interface for.
Re: Cppyy – Automatic Python-C++ bindings
#9> PyPy 5.7 and 5.8 have a built-in module cppyy.
Nice.
Re: Cppyy – Automatic Python-C++ bindings
#10I need to create Python bindings for a C++ library and after a brief survey of the available options was planning on using SWIG (http://www.swig.org/tutorial.html). How does this compare?