Standard IPC for Python?

Diez B. Roggisch deets at nospam.web.de
Tue Jan 13 11:35:50 EST 2009


Laszlo Nagy wrote:

> I would like to develop some module for Python for IPC. Socket
> programming howto recommends that for local communication, and I
> personally experienced problems with TCP (see my previous post: "Slow
> network").
> 
> I was looking for semaphores and shared memory, but it is not in the
> standard lib. I was also thinking about unix domain sockets, but it is
> not available under windows.
> 
> I was looking for non-standard modules as well, but only found a few
> references with insufficient information. For example:
> 
> http://code.activestate.com/recipes/519626/
> 
> The question is: what is the standard way to implement fast and portable
> IPC with Python? Are there tools in the standard lib that can do this?

I use Pyro. Has always been fast enough for me. It spares you the troubles
of bloated XML-documents other RPC-mechanisms use.

Of course it is RPC, not "only" IPC - so it comes with a tradeoff. But so
far, it has been always fast enough for me.

Diez



More information about the Python-list mailing list