|  | Creating wrapper for python.. |  | |
| | | Anish Chapagain |  |
| Posted: Mon Aug 04, 2008 3:11 pm Post subject: Creating wrapper for python.. |  |
Hi.. What will be the best approach for creating wrapper in python language for the API programmed in C. I came across SWIG, but am having problem as the generated .pyd file is not displaying any output... so, how feasible will be to use ctype for python..it is possible in C to create every c file a dll and link with necessary other one..?? |
| |
| | | santosh |  |
| Posted: Mon Aug 04, 2008 3:11 pm Post subject: Re: Creating wrapper for python.. |  |
Anish Chapagain wrote:
| Quote: | Hi.. What will be the best approach for creating wrapper in python language for the API programmed in C. I came across SWIG, but am having problem as the generated .pyd file is not displaying any output... so, how feasible will be to use ctype for python..it is possible in C to create every c file a dll and link with necessary other one..??
|
<http://www.python.org/doc/>
Also <news:comp.lang.python> |
| |
| | | Keith Thompson |  |
| Posted: Mon Aug 04, 2008 3:11 pm Post subject: Re: Creating wrapper for python.. |  |
Anish Chapagain <anishchapagain@gmail.com> writes:
| Quote: | What will be the best approach for creating wrapper in python language for the API programmed in C. I came across SWIG, but am having problem as the generated .pyd file is not displaying any output... so, how feasible will be to use ctype for python..it is possible in C to create every c file a dll and link with necessary other one..??
|
comp.lang.python would be a better place for this question. Please check that newsgroup's FAQ first.
-- Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst> Nokia "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister" |
| |
| | | Antoninus Twink |  |
| Posted: Mon Aug 04, 2008 6:17 pm Post subject: Re: Creating wrapper for python.. |  |
On 4 Aug 2008 at 15:11, Anish Chapagain wrote:
| Quote: | What will be the best approach for creating wrapper in python language for the API programmed in C. so, how feasible will be to use ctype for python..
|
It should be entirely feasible. Have you tried working through the tutorial at <http://python.net/crew/theller/ctypes/tutorial.html> ?
| Quote: | it is possible in C to create every c file a dll and link with necessary other one..??
|
[parse error] Could you explain more clearly what you mean? |
| |
|
|