How to write an API for a Python application?

dwelch donald.welch at hp.com
Wed Nov 16 12:31:27 EST 2005


Gary Kshepitzki wrote:
> Hello
> I would like to create an API for a piece of Python code. The API is for use 
> by non Python code.
> It should support interaction in both directions, both accessing functions 
> on the API and the ability for the API to raise events on its client.
> What is the best way to do that?
> I though of doing it as a python COM server but I am not familiar with COM 
> and I saw that implementing a COM server with events in python is not 
> trivial for me.
> Is there a better (or simpler) solution?
> What are the common ways for doing that?
> 
> Any answer would be highly appreciated.
> Regards
> Gary 
> 
> 

You could try Elmer:
http://elmer.sourceforge.net/index.html

I'm sure you could create a callable library (.so, .dll, etc) with it.

-Don



More information about the Python-list mailing list