A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/juanriaza/django-rest-framework-msgpack below:

juanriaza/django-rest-framework-msgpack: MessagePack support for Django REST framework

Django Rest Framework Msgpack

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

Install using pip:

$ pip install djangorestframework-msgpack

...or clone the project from github:

$ git clone git@github.com:juanriaza/django-rest-framework-msgpack.git
$ cd django-rest-framework-msgpack
$ pip install -r requirements.txt

This package provides a renderer MessagePackRenderer and a parser MessagePackParser.

Setting the renderer and the parser

Just follow the documentation:

rest_framework_msgpack.renderers.MessagePackRenderer

Renders the request data into MessagePack.

.media_type: application/msgpack .format: .msgpack rest_framework_msgpack.parsers.MessagePackParser

Parses MessagePack request content.

.media_type: application/msgpack

To run the tests against the current environment:

./manage.py test

22th Apr 2017

15th Jan 2012

6th Jan 2012


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4