2020-10-02 20:57:12 +00:00
|
|
|
================================================
|
|
|
|
Message Serialization - ``kombu.serialization``
|
|
|
|
================================================
|
2016-07-16 18:51:23 +00:00
|
|
|
|
2010-07-23 12:43:33 +00:00
|
|
|
.. currentmodule:: kombu.serialization
|
|
|
|
|
|
|
|
.. automodule:: kombu.serialization
|
2010-10-27 07:17:37 +00:00
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
Overview
|
|
|
|
--------
|
|
|
|
|
|
|
|
Centralized support for encoding/decoding of data structures.
|
|
|
|
Contains json, pickle, msgpack, and yaml serializers.
|
|
|
|
|
|
|
|
Optionally installs support for YAML if the `PyYAML`_ package
|
|
|
|
is installed.
|
|
|
|
|
|
|
|
Optionally installs support for `msgpack`_ if the `msgpack-python`_
|
|
|
|
package is installed.
|
|
|
|
|
|
|
|
|
|
|
|
Exceptions
|
|
|
|
----------
|
|
|
|
|
|
|
|
.. autoexception:: SerializerNotInstalled
|
|
|
|
|
|
|
|
Serialization
|
|
|
|
-------------
|
|
|
|
|
2019-01-09 15:28:36 +00:00
|
|
|
.. autofunction:: dumps
|
2010-10-27 07:17:37 +00:00
|
|
|
|
2019-01-09 15:28:36 +00:00
|
|
|
.. autofunction:: loads
|
2010-10-27 07:17:37 +00:00
|
|
|
|
|
|
|
.. autofunction:: raw_encode
|
|
|
|
|
|
|
|
Registry
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. autofunction:: register
|
2019-01-09 15:28:36 +00:00
|
|
|
.. autofunction:: unregister
|
2010-10-27 07:17:37 +00:00
|
|
|
|
|
|
|
.. autodata:: registry
|
|
|
|
|
2017-08-20 11:31:10 +00:00
|
|
|
.. _`Python 2.7+`: https://docs.python.org/library/json.html
|
|
|
|
.. _`PyYAML`: https://pyyaml.org/
|
|
|
|
.. _`msgpack`: https://msgpack.org/
|
2018-06-10 10:40:04 +00:00
|
|
|
.. _`msgpack-python`: https://pypi.org/project/msgpack-python/
|