Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A MsgPack serializer for Django.
Python
Branch: develop
Failed to load latest commit information.
demoproject removed spurious comment
msgpack_serializer changed package name
.gitignore Initial commit
LICENSE first commit
MANIFEST.in added MANIFEST.in
README.rst RST formatting
setup.py changed package name

README.rst

msgpack_serializer

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]
Something went wrong with that request. Please try again.