Just for fun - PickleRPC

Geoffrey Talvola gtalvola at nameconnector.com
Thu Feb 27 22:06:00 CET 2003

Webware has its own protocol called PickleRPC, probably very similar to what
you've written.  You might be interested to compare and contrast.  Here are
links to the relevant source files if you're interested:


- Geoff

Skip Montanaro [mailto:skip at pobox.com] wrote:
> Trying to speed up a simple client/server application in the 
> spambayes world
> I decided to try replacing XML-RPC with a simpler protocol.  
> I wound up with
> an RPC protocol running over raw sockets which uses pickle as the
> serialization format.  If you're curious about it, you can 
> see PickleRPC and
> a simple client/server pair here:
>     http://manatee.mojam.com/~skip/python/PickleRPC.py
>     http://manatee.mojam.com/~skip/python/hammiesrv.py
>     http://manatee.mojam.com/~skip/python/hammiecli.py
> Unless you are running the spambayes stuff already you won't 
> actually be
> able to run hammiesrv or hammiecli.  Still, they demonstrate 
> how easy it can
> be to create an RPC server - four lines for the server, three for the
> client, including imports.  PickleRPC.py itself is less than 
> 100 lines of
> Python.
> I'm sure this is just a toy - no real competition for xmlrpc, 
> pyro or other
> packages of that ilk, but it seems to work okay to the extent 
> I've tested
> it.
> Skip

More information about the Python-list mailing list