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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cec3ccf5a6a2e5dda0103948e4ea202dfa5d9d54fa165e207f5d5d3cc1e3b2b |
|
MD5 | 5c651fb14c0979a2a874bd0b0a6d9338 |
|
BLAKE2b-256 | 0c5c0fbb91604b0bae4258d8f36780afe9c86b6190bb71f5e2a79962ab2ebc65 |