Stand by for updates...
Meanwhile an overvire of the many ways to interface python with native programs and libraries:
- integrate through files, sockets, pipes or even mmap and shm
- write extension in C
- write extension in C and wrap it in Python module
- write module in mix of C and Python and translate with Cython
- use native library via ctypes
- use native library via ctypes and wrap in a Python module
- generate wrappers with SWIG
- write all in Python, numpy for performance
2nd and 3rd are quite sane, and after a bit of learning even quite easy to debug. The advantage of a Python wrapper is to split the 2 parts of integration, the C and Python so that programming is the easiest.

0 comments:
Post a Comment