harp.utils.config.yaml

Dumper

alias of CDumper

Loader

alias of CLoader

class Node[source]

Bases: object

__init__(tag, value, start_mark, end_mark)[source]
class ScalarNode[source]

Bases: Node

__init__(tag, value, start_mark=None, end_mark=None, style=None)[source]
id = 'scalar'
class SequenceNode[source]

Bases: CollectionNode

id = 'sequence'
add_constructor(tag, constructor, Loader=None)[source]

Add a constructor for the given tag. Constructor is a function that accepts a Loader instance and a node object and produces the corresponding Python object.

dump(data, stream=None, **kwargs)[source]
load(filename, *, Loader=<class 'yaml.cyaml.CLoader'>)[source]
safe_load(stream)[source]

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

Resolve only basic YAML tags. This is known to be safe for untrusted input.