Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
MsgPack support for Django Tastypie.
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tastypie_msgpack
.hgignore
AUTHORS
LICENSE
MANIFEST.in
README.rst
setup.py

README.rst

tastypie-msgpack

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!

Something went wrong with that request. Please try again.