Skip to main content

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

django_msgpack_serializer-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_msgpack_serializer-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for django_msgpack_serializer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 71a3b88c7699348fb9ce3127c7e0d3a3de108e2d6071155d809d817b11b462e0
MD5 c20ce403e5dcde3133e20262b0bb3992
BLAKE2b-256 7ff6a46ac7724bf998c77fe138105c63dc2222937561a2c660de3f30386fb128

See more details on using hashes here.

File details

Details for the file django_msgpack_serializer-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_msgpack_serializer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e27996801077d85eae18e76cf8055e4439249043f2ae46333517cad4c6a9ce9
MD5 f7ee681faa3db93fded2f552070d866d
BLAKE2b-256 4cf471bbb1c16b3502c0a0acab052b823cf4c2316774e91fc9fd58c4a439d0fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page