skip to navigation
skip to content

Not Logged In

tastypie-msgpack 0.0.3

MsgPack support for Django Tastypie.

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!

 
File Type Py Version Uploaded on Size
tastypie-msgpack-0.0.3.tar.gz (md5) Source 2012-12-05 2KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 45 downloads in the last week
  • 264 downloads in the last month