Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5358

Re: [Python-de] MessagePack Re: Binärdaten in JSON

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Thomas Jollans <tjol@tjol.eu>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] MessagePack Re: Binärdaten in JSON
Date Fri, 30 Nov 2018 13:31:22 +0100
Lines 45
Message-ID <mailman.24.1543581091.25456.python-de@python.org> (permalink)
References <16bf5ba5-26db-dddf-0a42-ddc61670a4ae@thomas-guettler.de> <7f71325e-964c-d453-373c-4f2e5d18e129@chrisarndt.de> <dd16fbdd-f53e-c120-d25f-069e63bf00fe@thomas-guettler.de> <23c19cce-56fd-aa40-fceb-8f07313badc3@tjol.eu>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de Dadyefs21voi/vR0JNATtw6TS3XWyykylb0wqlB1FOKg==
Return-Path <tjol@tjol.eu>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1
In-Reply-To <dd16fbdd-f53e-c120-d25f-069e63bf00fe@thomas-guettler.de>
Content-Language en-US
X-Df-Sender dGpAam9sbGFucy5kZi1rdW5kZS5kZQ==
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.29
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <23c19cce-56fd-aa40-fceb-8f07313badc3@tjol.eu>
X-Mailman-Original-References <16bf5ba5-26db-dddf-0a42-ddc61670a4ae@thomas-guettler.de> <7f71325e-964c-d453-373c-4f2e5d18e129@chrisarndt.de> <dd16fbdd-f53e-c120-d25f-069e63bf00fe@thomas-guettler.de>
Xref csiph.com de.comp.lang.python:5358

Show key headers only | View raw


On 30/11/2018 09:55, Thomas Güttler wrote:
>
> Ja, MessagePack sieht gut aus. Danke für den Hinweis.
> Ähnliche wie ProtocolBuffers. Aber bei ProtocolBuffers ist
> ein Schema zwingend nötig. Bei MessagePack anscheinend nicht.
> Das klingt MessagePack für mich erstmal flexibler.


msgpack wird u.a. auch bei pandas für eine Binärrepräsentation von 
Tabellen benutzt. Ist jedenfalls sehr flexibel und kann ungefähl das 
gleiche wie JSON (nur ein bisschen flexibler und halt binär)


>
>
> Am 29.11.18 um 23:11 schrieb Christopher Arndt:
>> Am 29.11.18 um 16:36 schrieb Thomas Güttler:
>>> Hat jemand schon mal mit binären Daten in JSON gearbeitet?
>>>
>>> Welche Lösungsvariante habt ihr gewählt?
>>
>> Wenn ees nur um den gelegentlichen Buinärstring in JSOn geht, würde ich
>> diesen auch einfach mit base64 kodieren.
>>
>> Ansonsten, wie wäre es mit msgpack?
>>
>> https://en.wikipedia.org/wiki/MessagePack
>>
>> Meiner Erfahrung nach zwar langsamer als Pickle aber schneller als JSON
>> und sicherer als ersteres.
>>
>>
>> Chris
>> _______________________________________________
>> python-de maillist  -  python-de@python.org
>> https://mail.python.org/mailman/listinfo/python-de
>>
>

-- 
Thomas Jollans

m ☎ +31 6 42630259
e ✉ tjol@tjol.eu

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

Re: [Python-de]  MessagePack Re: Binärdaten in JSON Thomas Jollans <tjol@tjol.eu> - 2018-11-30 13:31 +0100

csiph-web