skip to navigation
skip to content

Not Logged In

django-msgpack-serializer 0.0.3

A MsgPack serializer for Django.

Provides a msgpack serializer/deserializer for Django models instances.

Installation

Add the module msgpack_serializer.serializer to your SERIALIZATION_MODULES setting:

SERIALIZATION_MODULES = {
    "msgpack" : "msgpack_serializer.serializer",
}

Usage

To serialize:

from django.core import serializers

msgpack_serializer = serializers.get_serializer("msgpack")()
data = msgpack_serializer.serialize(my_objects)

To deserialize:

from django.core import serializers

deserialized_objects = serializers.deserialize('msgpack', data)
objs = [deserialized.object for deserialized in deserialized_objects]
 
File Type Py Version Uploaded on Size
django-msgpack-serializer-0.0.3.tar.gz (md5) Source 2013-05-28 3KB
  • Downloads (All Versions):
  • 56 downloads in the last day
  • 155 downloads in the last week
  • 510 downloads in the last month