earwax.yaml module

Makes the importing of yaml easier on systems that don’t support CDumper.

earwax.yaml.dump(data, stream=None, Dumper=<class 'yaml.dumper.Dumper'>, **kwds)

Serialize a Python object into a YAML stream. If stream is None, return the produced string instead.

earwax.yaml.load(stream, Loader=None)

Parse the first YAML document in a stream and produce the corresponding Python object.

class earwax.yaml.CDumper(stream, default_style=None, default_flow_style=False, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None, sort_keys=True)

Bases: yaml._yaml.CEmitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver

class earwax.yaml.CLoader(stream)

Bases: yaml._yaml.CParser, yaml.constructor.Constructor, yaml.resolver.Resolver