[Cython] Question about providing functions to existing C code
Stefan Behnel
stefan_ml at behnel.de
Fri Apr 18 11:12:52 CEST 2008
Hi,
Johannes Wienke wrote:
> I am currently wrappin an existing C plugin API into a Python project.
> The way from my plugin loader into the plugins is not the problem, but
> the original software provides a bunch of function that the plugins can
> use. Is there a way to provide these functions with cython, that means
> reimplementing them with cython but generating them as defined by the
> existing header files?
Are you asking about automated wrapper generation from header files?
Cython will not do that for you. There are tools like SWIG or sip (C++) that
are made for that purpose. Cython is better when there are non-trivial things
happening inside the wrapper, while the other two are better when it comes to
providing the same and potentially large API to a different language.
Stefan
More information about the Cython-dev
mailing list