Skip to main content

A MsgPack serializer for Django.

Project description

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]

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

django msgpack serializer-0.0.2.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file django msgpack serializer-0.0.2.tar.gz.

File metadata

File hashes

Hashes for django msgpack serializer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bd5e4a69ffb554adf4ca8a7146fd6c0f9bbc85c36dfa45cce0dce86925ce6690
MD5 04e26a9dc5533fdd193ecd02c0458af6
BLAKE2b-256 1154294c91df8051945c223b51e9a51fb636f2dc6a36d3ca1f31ddb5efb5e84b

See more details on using hashes here.

Provenance

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