Python extension using a C library with one 'hello' function

Søren sd at syntonetic.com
Tue Nov 4 07:11:15 EST 2014


I'm not sure if it fits your needs, but we are very happy with calling c 
libs directly from python using ctypes:

https://docs.python.org/2/library/ctypes.html
It requires a few extra lines in Python to handle the parameter and 
return types.

import ctypes
result = ctypes.windll.Hello.hello()




More information about the Python-list mailing list