Python - remote object protocols and security

Burak Arslan burak.arslan at
Mon Jul 15 14:50:10 CEST 2013


On 07/15/13 13:30, Chris Angelico wrote:
> On Mon, Jul 15, 2013 at 10:26 PM, Jean-Michel Pichavant
> <jeanmichel at> wrote:
>> Basically, I need to transfer numbers (int). Possibly dictionaries like {string: int} in order to structure things a little bit.
> I strongly recommend JSON, then. It's a well-known system, it's
> compact, it's secure, and Python comes with a json module.

Especially for numbers, MessagePack is more efficient. Its API is
identical to Json, so it's almost a drop-in replacement.

A project that I've been working on, Spyne, is designed to implement
public RPC services. It supports both Json and MessagePack. Here's the
json example:

If you choose to use MessagePack, you must HTTP POST the MessagePack
document the same way you'd POST the json document.

Best regards,

More information about the Python-list mailing list