How to write an API for a Python application?

Eric Brunel eric_brunel at despammed.com
Wed Nov 16 11:53:23 EST 2005


On 16 Nov 2005 06:18:05 -0800, Paul Boddie <paul at boddie.org.uk> wrote:

> Gary Kshepitzki wrote:
>> 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?
>
> One technology that I used many years ago with Python, and which should
> still do the job is CORBA - at that time ILU, but I suppose the various
> other ORBs should also be as capable; certainly, ILU permitted
> callbacks from the server into the client. These days, you might want
> to look at omniORB, Fnorb and ORBit.
>
> Paul

I never saw any way to create callbacks from server to client with CORBA. How would you describe such a callback in the IDL file?

TIA
-- 
python -c "print ''.join([chr(154 - ord(c)) for c in 'U(17zX(%,5.zmz5(17;8(%,5.Z65\'*9--56l7+-'])"



More information about the Python-list mailing list