Is there a good example on instantiating, calling, using, an API from Python on Windows?

Larry Bates larry.bates at websafe.com
Thu Jan 11 18:37:41 EST 2007


kj7ny wrote:
> Is there a good example on instantiating, calling, using, etc., an API
> from Python?
>
> I need to use Python to talk to another system through that system's
> API's on Windows XP.
>
> Can you point me to documentation and/or a good example of Python using
> 3rd party API's? (Preferably a good example rather than just
> documentation.)
>
> And, can I do this from Python 2.4.# or should I try to learn how to
> use Iron Python?  (By the way, if the examples could be for python
> 2.4.# it would be preferable.)
>
> Thanks,
>

When you say API what EXACLY do you mean.  Is it a .DLL that you
need to call (if so see ctypes module) or a COM API (if so see
win32 module)?  Other APIs could use sockets, pipes, etc.  you will
need to give us more to be able to help.

-Larry



More information about the Python-list mailing list