<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1255">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello</FONT></DIV>
<DIV><FONT face=Arial size=2>I would like to create an API for a piece of Python 
code. The API is for use by non Python code.</FONT></DIV>
<DIV><FONT face=Arial size=2>It should support interaction in both directions, 
both accessing functions on the API and the ability for the API to raise events 
on its clients. </FONT></DIV>
<DIV><FONT face=Arial size=2>What is the best way to do that?</FONT></DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Is there a better (or simpler) 
solution?</FONT></DIV>What are the common ways for doing that?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any answer would be greatly 
appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Gary</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>