1 | initial version |
The Sage library contains many C++ library interfaces, for example sage/libs/ppl.pyx
. Basically, write your C++ class and a Cython class that holds an instance of the C++ class as thisptr
. Then add Cython wrappers for the C++ methods. Now you have a C++ class that can be accessed from the Python command line...