Integrate C source in a Python project

B

billiejoex

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

Best regards
 
U

Uwe Schmitt

=20
Hi all.
I was wondering if it ispossible to integrate C source in a=20
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=20
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
 
B

billiejoex

Than you James. I'll take a look as soon as possible.
It is possible do the contrary (integrates python source in a C project)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top