Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50680 > unrolled thread
| Started by | Burak Arslan <burak.arslan@arskom.com.tr> |
|---|---|
| First post | 2013-07-15 13:50 +0100 |
| Last post | 2013-07-15 13:50 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Python - remote object protocols and security Burak Arslan <burak.arslan@arskom.com.tr> - 2013-07-15 13:50 +0100
| From | Burak Arslan <burak.arslan@arskom.com.tr> |
|---|---|
| Date | 2013-07-15 13:50 +0100 |
| Subject | Re: Python - remote object protocols and security |
| Message-ID | <mailman.4722.1373892986.3114.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web