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
Close
Hashes for django msgpack serializer-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd5e4a69ffb554adf4ca8a7146fd6c0f9bbc85c36dfa45cce0dce86925ce6690 |
|
MD5 | 04e26a9dc5533fdd193ecd02c0458af6 |
|
BLAKE2b-256 | 1154294c91df8051945c223b51e9a51fb636f2dc6a36d3ca1f31ddb5efb5e84b |