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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e2c970e82d24d21f4e06f737accf7fcbd55cde4c0aa72beaa612282513cd701 |
|
MD5 | 0cb5a478a052b30990974cecf623cb15 |
|
BLAKE2b-256 | 0b40b666ff616f7311d781380f2fcb5f6a6b06e0ae731545a5a27ec3c0470b7f |