Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50680
| Date | 2013-07-15 13:50 +0100 |
|---|---|
| From | Burak Arslan <burak.arslan@arskom.com.tr> |
| Subject | Re: Python - remote object protocols and security |
| References | <ks0loh$hp4$1@ger.gmane.org> <142271145.8401649.1373891187398.JavaMail.root@sequans.com> <CAPTjJmp-XwmAvkkqgqJVbdD8v2kxDfAMuhO0WCXQjk9BqhHz1Q@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4722.1373892986.3114.python-list@python.org> (permalink) |
Hi,
On 07/15/13 13:30, Chris Angelico wrote:
> On Mon, Jul 15, 2013 at 10:26 PM, Jean-Michel Pichavant
> <jeanmichel@sequans.com> 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:
http://spyne.io/#inprot=JsonDocument&outprot=JsonDocument&s=rpc&tpt=WsgiApplication&validator=true
If you choose to use MessagePack, you must HTTP POST the MessagePack
document the same way you'd POST the json document.
Best regards,
Burak
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python - remote object protocols and security Burak Arslan <burak.arslan@arskom.com.tr> - 2013-07-15 13:50 +0100
csiph-web