Apistar-msgpack: MessagePackRenderer & MessagePackParser


#1

MessagePackRenderer & MessagePackParser

https://pypi.python.org/pypi/apistar-msgpack

pip install apistar-msgpack

  • Change your Apistar App from JSON to MessagePack just adding 1 line.
  • Single file tiny module.
  • 1 Dependency, the Official Python MessagePack Lib.

:smirk_cat:


#2

Do you use this for a public api or just internally ?
Meaning, are there external apis offering msgpack ?
And would this work (is there a way) with api-consumer-generator ?


How To HTTP Sessions?
#3

I dunno.
If the client asks for msgpack it will respond msgpack, if asks for json it will still respond json.
json is msgpack anyways…


#4

Added Support for UJSON, a drop-in replacement of the std lib one made on C, its faster.
Changes on Master, not yet on PyPI.


#5

I think ujson is used by default in apistar if it’s installed ?


#6

Yah, but now also is by my Renderer and Parser. :smirk_cat: