| |
- add_constructor(tag, constructor, Loader=<class 'yaml.loader.Loader'>)
- 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.
- add_implicit_resolver(tag, regexp, first=None, Loader=<class 'yaml.loader.Loader'>, Dumper=<class 'yaml.dumper.Dumper'>)
- Add an implicit scalar detector.
If an implicit scalar value matches the given regexp,
the corresponding tag is assigned to the scalar.
first is a sequence of possible initial characters or None.
- add_multi_constructor(tag_prefix, multi_constructor, Loader=<class 'yaml.loader.Loader'>)
- Add a multi-constructor for the given tag prefix.
Multi-constructor is called for a node if its tag starts with tag_prefix.
Multi-constructor accepts a Loader instance, a tag suffix,
and a node object and produces the corresponding Python object.
- add_multi_representer(data_type, multi_representer, Dumper=<class 'yaml.dumper.Dumper'>)
- Add a representer for the given type.
Multi-representer is a function accepting a Dumper instance
and an instance of the given data type or subtype
and producing the corresponding representation node.
- add_path_resolver(tag, path, kind=None, Loader=<class 'yaml.loader.Loader'>, Dumper=<class 'yaml.dumper.Dumper'>)
- Add a path based resolver for the given tag.
A path is a list of keys that forms a path
to a node in the representation tree.
Keys can be string values, integers, or None.
- add_representer(data_type, representer, Dumper=<class 'yaml.dumper.Dumper'>)
- Add a representer for the given type.
Representer is a function accepting a Dumper instance
and an instance of the given data type
and producing the corresponding representation node.
- compose(stream, Loader=<class 'yaml.loader.Loader'>)
- Parse the first YAML document in a stream
and produce the corresponding representation tree.
- compose_all(stream, Loader=<class 'yaml.loader.Loader'>)
- Parse all YAML documents in a stream
and produce corresponsing representation trees.
- 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.
- dump_all(documents, stream=None, Dumper=<class 'yaml.dumper.Dumper'>, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding='utf-8', explicit_start=None, explicit_end=None, version=None, tags=None)
- Serialize a sequence of Python objects into a YAML stream.
If stream is None, return the produced string instead.
- emit(events, stream=None, Dumper=<class 'yaml.dumper.Dumper'>, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None)
- Emit YAML parsing events into a stream.
If stream is None, return the produced string instead.
- load(stream, Loader=<class 'yaml.loader.Loader'>)
- Parse the first YAML document in a stream
and produce the corresponding Python object.
- load_all(stream, Loader=<class 'yaml.loader.Loader'>)
- Parse all YAML documents in a stream
and produce corresponding Python objects.
- parse(stream, Loader=<class 'yaml.loader.Loader'>)
- Parse a YAML stream and produce parsing events.
- safe_dump(data, stream=None, **kwds)
- Serialize a Python object into a YAML stream.
Produce only basic YAML tags.
If stream is None, return the produced string instead.
- safe_dump_all(documents, stream=None, **kwds)
- Serialize a sequence of Python objects into a YAML stream.
Produce only basic YAML tags.
If stream is None, return the produced string instead.
- safe_load(stream)
- Parse the first YAML document in a stream
and produce the corresponding Python object.
Resolve only basic YAML tags.
- safe_load_all(stream)
- Parse all YAML documents in a stream
and produce corresponding Python objects.
Resolve only basic YAML tags.
- scan(stream, Loader=<class 'yaml.loader.Loader'>)
- Scan a YAML stream and produce scanning tokens.
- serialize(node, stream=None, Dumper=<class 'yaml.dumper.Dumper'>, **kwds)
- Serialize a representation tree into a YAML stream.
If stream is None, return the produced string instead.
- serialize_all(nodes, stream=None, Dumper=<class 'yaml.dumper.Dumper'>, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding='utf-8', explicit_start=None, explicit_end=None, version=None, tags=None)
- Serialize a sequence of representation trees into a YAML stream.
If stream is None, return the produced string instead.
|