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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_msgpack_serializer-1.0.0.tar.gz.
File metadata
- Download URL: django_msgpack_serializer-1.0.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71a3b88c7699348fb9ce3127c7e0d3a3de108e2d6071155d809d817b11b462e0
|
|
| MD5 |
c20ce403e5dcde3133e20262b0bb3992
|
|
| BLAKE2b-256 |
7ff6a46ac7724bf998c77fe138105c63dc2222937561a2c660de3f30386fb128
|
File details
Details for the file django_msgpack_serializer-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_msgpack_serializer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e27996801077d85eae18e76cf8055e4439249043f2ae46333517cad4c6a9ce9
|
|
| MD5 |
f7ee681faa3db93fded2f552070d866d
|
|
| BLAKE2b-256 |
4cf471bbb1c16b3502c0a0acab052b823cf4c2316774e91fc9fd58c4a439d0fd
|