Implements YAML serializer.
Underneath, it is based on pyyaml and use the safe dumper and loader. It also use C bindings if they are available.
alias of CSafeDumper
alias of CSafeLoader
Raised when stream of string failed to be deserialized
Overwrites Dumper as not for pollute legacy Dumper
Overwrites Loader as not for pollute legacy Loader
Raised when stream of string failed to be serialized
Deserialize any string of stream like object into a Python data structure.
stream_or_string -- stream or string to deserialize.
options -- options given to lower yaml module.
Serialize Python data to YAML.
obj -- the data structure to serialize
options -- options given to lower yaml module.