The goal is to call C code from Python. You should be able to do so
without learning a 3rd language: every alternative requires you to
learn their own language (Cython, SWIG) or API (ctypes). So we tried
to assume that you know Python and C and minimize the extra bits of
API that you need to learn.
One of the official Python documents contains details on extending Python using C/C++.
Even without the use of SWIG, it’s quite straightforward and works perfectly well on Windows.
I think cffi for python can be an option.
http://cffi.readthedocs.org/en/release-0.7/
One of the official Python documents contains details on extending Python using C/C++. Even without the use of SWIG, it’s quite straightforward and works perfectly well on Windows.