Bridging Python and C

Christian Heimes lists at cheimes.de
Thu Jul 23 17:53:22 EDT 2009


Mohan Parthasarathy wrote:
> Hi,
> I am a newbie. It looks like there are quite a few ways to bridge Python and
> C. I have a bunch of C code and I just need Python wrappers for it. If i
> google for this I get SWIG, Boost etc. And I also see
> 
> http://www.python.org/doc/2.5.2/ext/intro.html
> 
> What is the recommended way for doing this ?

I recommend Cython (http://cython.org/). I'm using it on a daily bases
to wrap C libraries.

Christian




More information about the Python-list mailing list