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
Dictionary that remembers insertion order
Create a new ordered dictionary with keys from iterable and values set to value.
Move an existing element to the end (or beginning if last is false).
Raise KeyError if the element does not exist.
If the key is not found, return the default if given; otherwise, raise a KeyError.
Remove and return a (key, value) pair from the dictionary.
Pairs are returned in LIFO order if last is true or FIFO order if false.
Insert key with a value of default if key is not in the dictionary.
Return the value for key if key is in the dictionary, else default.
If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
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.