Awesome Open Source
Awesome Open Source

Django Rest Framework Msgpack

.. image:: :target:

:Version: 1.0.2 :Author: Juan Riaza <>_


MessagePack <>_ is a fast, compact binary serialization format, suitable for similar data to JSON. This package provides MessagePack <>_ support for Django REST framework <>_.

How to install

Install using pip:

.. code-block:: bash

$ pip install djangorestframework-msgpack

...or clone the project from github:

.. code-block:: bash

$ git clone [email protected]:juanriaza/django-rest-framework-msgpack.git
$ cd django-rest-framework-msgpack
$ pip install -r requirements.txt

How use it?

This package provides a renderer MessagePackRenderer and a parser MessagePackParser.

Setting the renderer and the parser

Just follow the documentation:

  • Setting the renderer <>_.
  • Setting the parser <>_.


Renders the request data into MessagePack.

:.media_type: application/msgpack :.format: .msgpack


Parses MessagePack request content.

:.media_type: application/msgpack

Running the tests

To run the tests against the current environment::

./ test



22th Apr 2017


15th Jan 2012

  • The parser now support streams (by Sébastien Béal - @sebastibe)


6th Jan 2012

  • Initial release

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (51,899
django (987
django-rest-framework (135
messagepack (23

Find Open Source By Browsing 7,000 Topics Across 59 Categories