2016-07-16 18:51:23 +00:00
|
|
|
========================================
|
|
|
|
Message Serialization - ``kombu``
|
|
|
|
========================================
|
|
|
|
|
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
|
|
|
|
-------------
|
|
|
|
|
|
|
|
.. autofunction:: encode
|
|
|
|
|
|
|
|
.. autofunction:: decode
|
|
|
|
|
|
|
|
.. autofunction:: raw_encode
|
|
|
|
|
|
|
|
Registry
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. autofunction:: register
|
|
|
|
|
|
|
|
.. autodata:: registry
|
|
|
|
|
2018-06-10 10:40:04 +00:00
|
|
|
.. _`cjson`: https://pypi.org/project/python-cjson/
|
2017-08-20 11:31:10 +00:00
|
|
|
.. _`simplejson`: https://github.com/simplejson/simplejson
|
|
|
|
.. _`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/
|