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) # returns bytes
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
Built Distribution
Close
Hashes for django_msgpack_serializer-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71a3b88c7699348fb9ce3127c7e0d3a3de108e2d6071155d809d817b11b462e0 |
|
MD5 | c20ce403e5dcde3133e20262b0bb3992 |
|
BLAKE2b-256 | 7ff6a46ac7724bf998c77fe138105c63dc2222937561a2c660de3f30386fb128 |
Close
Hashes for django_msgpack_serializer-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e27996801077d85eae18e76cf8055e4439249043f2ae46333517cad4c6a9ce9 |
|
MD5 | f7ee681faa3db93fded2f552070d866d |
|
BLAKE2b-256 | 4cf471bbb1c16b3502c0a0acab052b823cf4c2316774e91fc9fd58c4a439d0fd |