Integrate C source in a Python project

Uwe Schmitt schmitt at num.uni-sb.de
Fri Aug 26 09:36:23 EDT 2005


> 
> Hi all.
> I was wondering if it ispossible to integrate C source in a 
> python project.

Yes it is. Which tool you use depends on your requirements:

http://starship.python.net/crew/theller/ctypes/
ctypes allowes loading dlls/shared libs and calling functions 
in that lib.

www.swig.org
is a wrapper for wrapping c/c++ to several languages as php, python, ...

www.boost.org
includes the boost pyhton library. this is my favorite for
wrapping c++ code.

Greetings, Uwe





More information about the Python-list mailing list