Build Status License

python-ctools-demo

Inspired by Kurt W. Smith's book on Cython

Examples

The first example make use of a simple C++ source code which implements two Taylor series sine() and cosine(). The point is to illustrate how C/C++ functions can be called from python with the use of Cython.

The second example is an implementation of the Soundex algorithm. The implementation is taken from Jeff Langr's book Modern C++ Programming with Test-Driven Development We will use Pybind11 to make a module of the C++-source code.

Lower-level learning goals

  • Show how distutils can be used to build a Python library
  • Show how CMake can be used to accomblish the same thing
  • Show how Pybind11 can be used

Requirements

  • Python
  • Cython
  • CMake
  • C++ compilers