I have heard, but the given examples do not really match my needs because they are all GCC
.
I have a header related to the dynamic library foo.dll
with the foo.h
header.
I may have in my library:
// foo.h typedef int HANDLER; Int Innit (Handler * DH); Intra Row (Handler DH, Int Integration); Int smile (handler DH, int intensity); Int die (handler DH);
I would like to wrap this library in Python package which can be used like this:
#! / Usr / bin / env Python Import Foo = Foo () him.cry (20) him.smile (10) him.die ()
behind my cover I expect something :
square fu: def __init __ (self): self.foo = cdll.LoadLibrary ("foo.dll") self.handler = p_int () self.foo.init (indicator Self.handler) def reel (self): returns self.foo.cry (self.handler)
What is the proper tool to do this automatically?
I will say, and for example (?) Gives the first search of "Cython dll": < / P>
No comments:
Post a Comment