Is ctypes appropriate in my case?

dudeja.rajat at dudeja.rajat at
Thu Oct 30 15:43:50 CET 2008

> For CPython, an importable module written in C.  There is a doc Extending
> and Embedding the Python Interpreter.  But I expect you can write the class
> in Python with ctypes.

Thanks Terry. I'll be using ctypes now and have started writing the class.
But the problem is that there are some 150 APIs exposed by the dll. Is there
any tool that can autogenerate some of the member functions for the class
since new APIs might as well get added in future.

Could SWIG be of use here?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list