carrot.serialization

Centralized support for encoding/decoding of data structures. Requires a json library (cjson, simplejson, or Python 2.6+).

Pickle support is built-in.

Optionally installs support for YAML if the PyYAML package is installed.

Optionally installs support for msgpack if the msgpack-python package is installed.

exception carrot.serialization.SerializerNotInstalled

Support for the requested serialization type is not installed

carrot.serialization.registry
carrot.serialization.encode(data, serializer=default_serializer)

Encode data using the registry’s default encoder.

Previous topic

carrot.backends.queue

Next topic

carrot.utils

This Page