carrot.serialization

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

Optionally installs support for YAML if the necessary PyYAML 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

Change history

This Page