Skip to main content

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


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.3.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file tastypie-msgpack-0.0.3.tar.gz.

File metadata

File hashes

Hashes for tastypie-msgpack-0.0.3.tar.gz
Algorithm Hash digest
SHA256 800184d3f434c8fa8506f5f857d6edbb1d62941d1dc26da215b06bfae7b18ad6
MD5 53ea8dbc7393df84ee2b768cd3ab9d7c
BLAKE2b-256 d902a911a103f0163b3d8a1d2f38e7b69c56b7ad4760e7185541058ccba6191c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page