MsgPack support for Django Tastypie.
Project description
Created by Stephen McDonald
Adds MsgPack support to Django Tastypie.
Installation
$ pip install -U tastypie-msgpack
Usage
Given a tastypie resource, simply define tastypie_msgpack.Serializer as the serializer for the resource:
from tastypie.resources import ModelResource from tastypie_msgpack import Serializer from myapp.models import MyModel class MyResource(ModelResource): class Meta: resource_name = "thing" queryset = MyModel.objects.all() serializer = Serializer()
You can now append the format=msgpack arg to your API URLs!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tastypie-msgpack-0.0.2.tar.gz
(2.3 kB
view hashes)