Need some IPC pointers

Irmen de Jong irmen at -NOSPAM-xs4all.nl
Wed Nov 30 17:28:15 EST 2011


On 30-11-11 22:03, Andrew Berg wrote:
> I've done some research, but I'm not sure what's most appropriate for my
> situation. What I want to do is have a long running process that spawns
> processes (that aren't necessarily written in Python) and communicates
> with them. The children can be spawned at any time and communicate at
> any time. Being able to communicate with non-local processes would be
> nice, but is not necessary. The implementation needs to be
> cross-platform, but child processes will use the same OS as the parent
> during runtime.
> I don't think I'll ever need to transfer anything complicated or large -
> just strings or possibly tuples/lists. I'd rather not go outside the
> standard library (but I'd consider it). I don't need to worry about
> compatibility with older Python versions; if it only works with Python
> 3.2, that's not a problem.
> I'm thinking sockets, but perhaps there's something simpler/easier.
>

Standard library, local processes: multiprocessing module.

If that doesn't suit your needs, maybe check out Pyro:
http://packages.python.org/Pyro4/

Pyro allows objects to talk to each other over the network, with minimal 
programming effort. You can just use normal Python method calls to call 
objects on other machines (or locally, ofcourse). It's written in 100% 
pure Python and works on Python 2.6 and upwards (including 3.x).

Regards,
Irmen de Jong




More information about the Python-list mailing list