Ask Your Question

Revision history [back]

click to hide/show revision 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...