Interapp communication under Python[Linux]?

Robert Oschler Oschler at earthlink.net
Fri Sep 6 13:20:50 EDT 2002


My Python app will talk to 3 or 4 modules written in Java and C/C++.
Fortunately I have the source for the Java and C/C++ modules and I have
experience in both languages.  Currently the external modules have no
provision for being accessed outside of the process they are running as.  So
I'm wondering what the best protocol would be used to "glue it all
together".  There a dizzying array of possibilities:

1) Have everybody talk to each other via SOAP (web services).
2) Have everybody talk to each other via XML-RPC (Don't know much about this
method).
3) Use Boost's SWIG interface for C++ to link the C/C++ modules to Python.
How to link to Java in the same manner?
4) Use "sockets" and my own custom protocol for everybody.
5) Code in Jython instead and use various methods above to talk to C/C++
modules from Jython app.
6) CORBA? (yikes!)

So as I said, a lot of ways to get things done.  I'd like to hear from those
of you that have actually done a lot of cross-app communication with Python
on what your experiences have been, and the pros and cons you encountered.

thx






More information about the Python-list mailing list