Skip to main content

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]

Metadata

Release files for django-msgpack-serializer 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-msgpack-serializer 1.0.0
File Size Uploaded
django_msgpack_serializer-1.0.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-msgpack-serializer 1.0.0
File Interpreter ABI Platform
django_msgpack_serializer-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / django_msgpack_serializer-1.0.0.tar.gz

Download URL django_msgpack_serializer-1.0.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
71a3b88c7699348fb9ce3127c7e0d3a3de108e2d6071155d809d817b11b462e0
BLAKE2b-256 checksum
How to use checksums
7ff6a46ac7724bf998c77fe138105c63dc2222937561a2c660de3f30386fb128
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure

Release files / django_msgpack_serializer-1.0.0-py3-none-any.whl

Download URL django_msgpack_serializer-1.0.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e27996801077d85eae18e76cf8055e4439249043f2ae46333517cad4c6a9ce9
BLAKE2b-256 checksum
How to use checksums
4cf471bbb1c16b3502c0a0acab052b823cf4c2316774e91fc9fd58c4a439d0fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page