|
OpenQuizz
Une application de gestion des contenus pédagogiques
|
Namespaces | |
| composer | |
| constructor | |
| cyaml | |
| dumper | |
| emitter | |
| error | |
| events | |
| loader | |
| nodes | |
| parser | |
| reader | |
| representer | |
| resolver | |
| scanner | |
| serializer | |
| tokens | |
Data Structures | |
| class | YAMLLoadWarning |
| class | YAMLObject |
| class | YAMLObjectMetaclass |
Functions | |
| def | warnings (settings=None) |
| def | load_warning (method) |
| def | scan (stream, Loader=Loader) |
| def | parse (stream, Loader=Loader) |
| def | compose (stream, Loader=Loader) |
| def | compose_all (stream, Loader=Loader) |
| def | load (stream, Loader=None) |
| def | load_all (stream, Loader=None) |
| def | full_load (stream) |
| def | full_load_all (stream) |
| def | safe_load (stream) |
| def | safe_load_all (stream) |
| def | unsafe_load (stream) |
| def | unsafe_load_all (stream) |
| def | emit (events, stream=None, Dumper=Dumper, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None) |
| def | serialize_all (nodes, stream=None, Dumper=Dumper, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None) |
| def | serialize (node, stream=None, Dumper=Dumper, **kwds) |
| def | dump_all (documents, stream=None, Dumper=Dumper, 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) |
| def | dump (data, stream=None, Dumper=Dumper, **kwds) |
| def | safe_dump_all (documents, stream=None, **kwds) |
| def | safe_dump (data, stream=None, **kwds) |
| def | add_implicit_resolver (tag, regexp, first=None, Loader=None, Dumper=Dumper) |
| def | add_path_resolver (tag, path, kind=None, Loader=None, Dumper=Dumper) |
| def | add_constructor (tag, constructor, Loader=None) |
| def | add_multi_constructor (tag_prefix, multi_constructor, Loader=None) |
| def | add_representer (data_type, representer, Dumper=Dumper) |
| def | add_multi_representer (data_type, multi_representer, Dumper=Dumper) |
| def yaml.add_constructor | ( | tag, | |
| constructor, | |||
Loader = None |
|||
| ) |
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.
| def yaml.add_implicit_resolver | ( | tag, | |
| regexp, | |||
first = None, |
|||
Loader = None, |
|||
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.
| def yaml.add_multi_constructor | ( | tag_prefix, | |
| multi_constructor, | |||
Loader = None |
|||
| ) |
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.
| def yaml.add_multi_representer | ( | data_type, | |
| multi_representer, | |||
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.
| def yaml.add_path_resolver | ( | tag, | |
| path, | |||
kind = None, |
|||
Loader = None, |
|||
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.
| def yaml.add_representer | ( | data_type, | |
| representer, | |||
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.
| def yaml.compose | ( | stream, | |
Loader = Loader |
|||
| ) |
Parse the first YAML document in a stream and produce the corresponding representation tree.
| def yaml.compose_all | ( | stream, | |
Loader = Loader |
|||
| ) |
Parse all YAML documents in a stream and produce corresponding representation trees.
| def yaml.dump | ( | data, | |
stream = None, |
|||
Dumper = Dumper, |
|||
| ** | kwds | ||
| ) |
Serialize a Python object into a YAML stream. If stream is None, return the produced string instead.
| def yaml.dump_all | ( | documents, | |
stream = None, |
|||
Dumper = Dumper, |
|||
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 |
|||
| ) |
Serialize a sequence of Python objects into a YAML stream. If stream is None, return the produced string instead.
| def yaml.emit | ( | events, | |
stream = None, |
|||
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.
| def yaml.full_load | ( | stream | ) |
Parse the first YAML document in a stream and produce the corresponding Python object. Resolve all tags except those known to be unsafe on untrusted input.
| def yaml.full_load_all | ( | stream | ) |
Parse all YAML documents in a stream and produce corresponding Python objects. Resolve all tags except those known to be unsafe on untrusted input.
| def yaml.load | ( | stream, | |
Loader = None |
|||
| ) |
Parse the first YAML document in a stream and produce the corresponding Python object.
| def yaml.load_all | ( | stream, | |
Loader = None |
|||
| ) |
Parse all YAML documents in a stream and produce corresponding Python objects.
| def yaml.load_warning | ( | method | ) |
| def yaml.parse | ( | stream, | |
Loader = Loader |
|||
| ) |
Parse a YAML stream and produce parsing events.
| def yaml.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.
| def yaml.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.
| def yaml.safe_load | ( | stream | ) |
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.
| def yaml.safe_load_all | ( | stream | ) |
Parse all YAML documents in a stream and produce corresponding Python objects. Resolve only basic YAML tags. This is known to be safe for untrusted input.
| def yaml.scan | ( | stream, | |
Loader = Loader |
|||
| ) |
Scan a YAML stream and produce scanning tokens.
| def yaml.serialize | ( | node, | |
stream = None, |
|||
Dumper = Dumper, |
|||
| ** | kwds | ||
| ) |
Serialize a representation tree into a YAML stream. If stream is None, return the produced string instead.
| def yaml.serialize_all | ( | nodes, | |
stream = None, |
|||
Dumper = Dumper, |
|||
canonical = None, |
|||
indent = None, |
|||
width = None, |
|||
allow_unicode = None, |
|||
line_break = None, |
|||
encoding = None, |
|||
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.
| def yaml.unsafe_load | ( | stream | ) |
Parse the first YAML document in a stream and produce the corresponding Python object. Resolve all tags, even those known to be unsafe on untrusted input.
| def yaml.unsafe_load_all | ( | stream | ) |
Parse all YAML documents in a stream and produce corresponding Python objects. Resolve all tags, even those known to be unsafe on untrusted input.
| def yaml.warnings | ( | settings = None | ) |