Serialization utilities.
copyright: |
|
---|---|
license: | BSD, see LICENSE for more details. |
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.
Support for the requested serialization type is not installed
Deserialize a data stream as serialized using encode based on content_type.
Parameters: |
|
---|---|
Returns: | The unserialized data. |
Parameters: |
|
---|
Special case serializer.
Parameters: | name – Registered serialization method name. |
---|
Serialize a data structure into a string suitable for sending as an AMQP message body.
Parameters: |
|
---|---|
Returns: | A three-item tuple containing the content type (e.g., application/json), content encoding, (e.g., utf-8) and a string containing the serialized data. |
Raises SerializerNotInstalled: | |
If the serialization method requested is not available. |