Wrapping a C library in Python
François Pinard
pinard at iro.umontreal.ca
Thu Nov 18 21:55:55 EST 2004
[Roy Smith]
> I've got a C library with about 50 calls in it that I want to wrap in
> Python. I know I could use some tool like SWIG, but that will give me a
> too-literal translation; I want to make some modifications along the way
> to make the interface more Pythonic.
I used Pyrex with both pleasure and success for wrapping C libraries
while giving the API a more Pythonic flavour. I found Pyrex to be a
wonderful tool for easily doing such things.
--
François Pinard http://pinard.progiciels-bpi.ca
More information about the Python-list
mailing list