pyyaml API Reference
Full documentation for pyyaml (6.0.3)
pyyaml.AliasEvent
Python Library Documentation: class AliasEvent in module yaml.events class AliasEvent(NodeEvent) | AliasEvent(anchor, start_mark=None, end_mark=None) | | Method resolution order: | AliasEvent | NodeEvent | Event | builtins.object | | Methods inherited from NodeEvent: | | __init__(self, anchor, start_mark=None, end_mark=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Event: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.AliasToken
Python Library Documentation: class AliasToken in module yaml.tokens class AliasToken(Token) | AliasToken(value, start_mark, end_mark) | | Method resolution order: | AliasToken | Token | builtins.object | | Methods defined here: | | __init__(self, value, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | id = '<alias>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.AnchorToken
Python Library Documentation: class AnchorToken in module yaml.tokens class AnchorToken(Token) | AnchorToken(value, start_mark, end_mark) | | Method resolution order: | AnchorToken | Token | builtins.object | | Methods defined here: | | __init__(self, value, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | id = '<anchor>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.BaseDumper
Python Library Documentation: class BaseDumper in module yaml.dumper
class BaseDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.BaseRepresenter, yaml.resolver.BaseResolver)
| BaseDumper(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)
|
| Method resolution order:
| BaseDumper
| yaml.emitter.Emitter
| yaml.serializer.Serializer
| yaml.representer.BaseRepresenter
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.emitter.Emitter:
|
| analyze_scalar(self, scalar)
|
| check_empty_document(self)
|
| check_empty_mapping(self)
|
| check_empty_sequence(self)
|
| check_simple_key(self)
|
| choose_scalar_style(self)
|
| determine_block_hints(self, text)
|
| dispose(self)
|
| emit(self, event)
|
| expect_alias(self)
|
| expect_block_mapping(self)
|
| expect_block_mapping_key(self, first=False)
|
| expect_block_mapping_simple_value(self)
|
| expect_block_mapping_value(self)
|
| expect_block_sequence(self)
|
| expect_block_sequence_item(self, first=False)
|
| expect_document_end(self)
|
| expect_document_root(self)
|
| expect_document_start(self, first=False)
|
| expect_first_block_mapping_key(self)
|
| expect_first_block_sequence_item(self)
|
| expect_first_document_start(self)
|
| expect_first_flow_mapping_key(self)
|
| expect_first_flow_sequence_item(self)
|
| expect_flow_mapping(self)
|
| expect_flow_mapping_key(self)
|
| expect_flow_mapping_simple_value(self)
|
| expect_flow_mapping_value(self)
|
| expect_flow_sequence(self)
|
| expect_flow_sequence_item(self)
|
| expect_node(self, root=False, sequence=False, mapping=False, simple_key=False)
|
| expect_nothing(self)
|
| expect_scalar(self)
|
| expect_stream_start(self)
|
| flush_stream(self)
|
| increase_indent(self, flow=False, indentless=False)
|
| need_events(self, count)
|
| need_more_events(self)
|
| prepare_anchor(self, anchor)
|
| prepare_tag(self, tag)
|
| prepare_tag_handle(self, handle)
|
| prepare_tag_prefix(self, prefix)
|
| prepare_version(self, version)
|
| process_anchor(self, indicator)
|
| process_scalar(self)
|
| process_tag(self)
|
| write_double_quoted(self, text, split=True)
|
| write_folded(self, text)
|
| write_indent(self)
|
| write_indicator(self, indicator, need_whitespace, whitespace=False, indention=False)
|
| write_line_break(self, data=None)
|
| write_literal(self, text)
|
| write_plain(self, text, split=True)
|
| write_single_quoted(self, text, split=True)
|
| write_stream_end(self)
|
| write_stream_start(self)
|
| write_tag_directive(self, handle_text, prefix_text)
|
| write_version_directive(self, version_text)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.emitter.Emitter:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.emitter.Emitter:
|
| DEFAULT_TAG_PREFIXES = {'!': '!', 'tag:yaml.org,2002:': '!!'}
|
| ESCAPE_REPLACEMENTS = {'\x00': '0', '\x07': 'a', '\x08': 'b', '\t': 't...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.serializer.Serializer:
|
| anchor_node(self, node)
|
| close(self)
|
| generate_anchor(self, node)
|
| open(self)
|
| serialize(self, node)
|
| serialize_node(self, node, parent, index)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.serializer.Serializer:
|
| ANCHOR_TEMPLATE = 'id%03d'
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| ignore_aliases(self, data)
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.BaseRepresenter:
|
| yaml_multi_representers = {}
|
| yaml_representers = {}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_implicit_resolvers = {}
|
| yaml_path_resolvers = {}
pyyaml.BaseLoader
Python Library Documentation: class BaseLoader in module yaml.loader
class BaseLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
| BaseLoader(stream)
|
| Method resolution order:
| BaseLoader
| yaml.reader.Reader
| yaml.scanner.Scanner
| yaml.parser.Parser
| yaml.composer.Composer
| yaml.constructor.BaseConstructor
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize the scanner.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.reader.Reader:
|
| check_printable(self, data)
|
| determine_encoding(self)
|
| forward(self, length=1)
|
| get_mark(self)
|
| peek(self, index=0)
|
| prefix(self, length=1)
|
| update(self, length)
|
| update_raw(self, size=4096)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.reader.Reader:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.reader.Reader:
|
| NON_PRINTABLE = re.compile('[^\t\n\r -~\x85\xa0-\ud7ff\ue000-�𐀀-\U0010...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.scanner.Scanner:
|
| add_indent(self, column)
|
| check_block_entry(self)
|
| check_directive(self)
|
| check_document_end(self)
|
| check_document_start(self)
|
| check_key(self)
|
| check_plain(self)
|
| check_token(self, *choices)
|
| check_value(self)
|
| fetch_alias(self)
|
| fetch_anchor(self)
|
| fetch_block_entry(self)
|
| fetch_block_scalar(self, style)
|
| fetch_directive(self)
|
| fetch_document_end(self)
|
| fetch_document_indicator(self, TokenClass)
|
| fetch_document_start(self)
|
| fetch_double(self)
|
| fetch_flow_collection_end(self, TokenClass)
|
| fetch_flow_collection_start(self, TokenClass)
|
| fetch_flow_entry(self)
|
| fetch_flow_mapping_end(self)
|
| fetch_flow_mapping_start(self)
|
| fetch_flow_scalar(self, style)
|
| fetch_flow_sequence_end(self)
|
| fetch_flow_sequence_start(self)
|
| fetch_folded(self)
|
| fetch_key(self)
|
| fetch_literal(self)
|
| fetch_more_tokens(self)
|
| fetch_plain(self)
|
| fetch_single(self)
|
| fetch_stream_end(self)
|
| fetch_stream_start(self)
|
| fetch_tag(self)
|
| fetch_value(self)
|
| get_token(self)
|
| need_more_tokens(self)
|
| next_possible_simple_key(self)
|
| peek_token(self)
|
| remove_possible_simple_key(self)
|
| save_possible_simple_key(self)
|
| scan_anchor(self, TokenClass)
|
| scan_block_scalar(self, style)
|
| scan_block_scalar_breaks(self, indent)
|
| scan_block_scalar_ignored_line(self, start_mark)
|
| scan_block_scalar_indentation(self)
|
| scan_block_scalar_indicators(self, start_mark)
|
| scan_directive(self)
|
| scan_directive_ignored_line(self, start_mark)
|
| scan_directive_name(self, start_mark)
|
| scan_flow_scalar(self, style)
|
| scan_flow_scalar_breaks(self, double, start_mark)
|
| scan_flow_scalar_non_spaces(self, double, start_mark)
|
| scan_flow_scalar_spaces(self, double, start_mark)
|
| scan_line_break(self)
|
| scan_plain(self)
|
| scan_plain_spaces(self, indent, start_mark)
|
| scan_tag(self)
|
| scan_tag_directive_handle(self, start_mark)
|
| scan_tag_directive_prefix(self, start_mark)
|
| scan_tag_directive_value(self, start_mark)
|
| scan_tag_handle(self, name, start_mark)
|
| scan_tag_uri(self, name, start_mark)
|
| scan_to_next_token(self)
|
| scan_uri_escapes(self, name, start_mark)
|
| scan_yaml_directive_number(self, start_mark)
|
| scan_yaml_directive_value(self, start_mark)
|
| stale_possible_simple_keys(self)
|
| unwind_indent(self, column)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.scanner.Scanner:
|
| ESCAPE_CODES = {'U': 8, 'u': 4, 'x': 2}
|
| ESCAPE_REPLACEMENTS = {'\t': '\t', ' ': ' ', '"': '"', '/': '/', '0': ...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.parser.Parser:
|
| check_event(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| parse_block_mapping_first_key(self)
|
| parse_block_mapping_key(self)
|
| parse_block_mapping_value(self)
|
| parse_block_node(self)
|
| parse_block_node_or_indentless_sequence(self)
|
| parse_block_sequence_entry(self)
|
| parse_block_sequence_first_entry(self)
|
| parse_document_content(self)
|
| parse_document_end(self)
|
| parse_document_start(self)
|
| parse_flow_mapping_empty_value(self)
|
| parse_flow_mapping_first_key(self)
|
| parse_flow_mapping_key(self, first=False)
|
| parse_flow_mapping_value(self)
|
| parse_flow_node(self)
|
| parse_flow_sequence_entry(self, first=False)
|
| parse_flow_sequence_entry_mapping_end(self)
|
| parse_flow_sequence_entry_mapping_key(self)
|
| parse_flow_sequence_entry_mapping_value(self)
|
| parse_flow_sequence_first_entry(self)
|
| parse_implicit_document_start(self)
|
| parse_indentless_sequence_entry(self)
|
| parse_node(self, block=False, indentless_sequence=False)
|
| parse_stream_start(self)
|
| peek_event(self)
|
| process_directives(self)
|
| process_empty_scalar(self, mark)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.parser.Parser:
|
| DEFAULT_TAGS = {'!': '!', '!!': 'tag:yaml.org,2002:'}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.composer.Composer:
|
| check_node(self)
|
| compose_document(self)
|
| compose_mapping_node(self, anchor)
|
| compose_node(self, parent, index)
|
| compose_scalar_node(self, anchor)
|
| compose_sequence_node(self, anchor)
|
| get_node(self)
|
| get_single_node(self)
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_mapping(self, node, deep=False)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.BaseConstructor:
|
| yaml_constructors = {}
|
| yaml_multi_constructors = {}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_implicit_resolvers = {}
|
| yaml_path_resolvers = {}
pyyaml.BlockEndToken
Python Library Documentation: class BlockEndToken in module yaml.tokens class BlockEndToken(Token) | BlockEndToken(start_mark, end_mark) | | Method resolution order: | BlockEndToken | Token | builtins.object | | Data and other attributes defined here: | | id = '<block end>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.BlockEntryToken
Python Library Documentation: class BlockEntryToken in module yaml.tokens class BlockEntryToken(Token) | BlockEntryToken(start_mark, end_mark) | | Method resolution order: | BlockEntryToken | Token | builtins.object | | Data and other attributes defined here: | | id = '-' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.BlockMappingStartToken
Python Library Documentation: class BlockMappingStartToken in module yaml.tokens class BlockMappingStartToken(Token) | BlockMappingStartToken(start_mark, end_mark) | | Method resolution order: | BlockMappingStartToken | Token | builtins.object | | Data and other attributes defined here: | | id = '<block mapping start>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.BlockSequenceStartToken
Python Library Documentation: class BlockSequenceStartToken in module yaml.tokens class BlockSequenceStartToken(Token) | BlockSequenceStartToken(start_mark, end_mark) | | Method resolution order: | BlockSequenceStartToken | Token | builtins.object | | Data and other attributes defined here: | | id = '<block sequence start>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.CBaseDumper
Python Library Documentation: class CBaseDumper in module yaml.cyaml
class CBaseDumper(yaml._yaml.CEmitter, yaml.representer.BaseRepresenter, yaml.resolver.BaseResolver)
| CBaseDumper(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)
|
| Method resolution order:
| CBaseDumper
| yaml._yaml.CEmitter
| yaml.representer.BaseRepresenter
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CEmitter:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| close(self)
|
| dispose(self)
|
| emit(self, event_object)
|
| open(self)
|
| serialize(self, node)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CEmitter:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CEmitter
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CEmitter:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| ignore_aliases(self, data)
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.BaseRepresenter:
|
| yaml_multi_representers = {}
|
| yaml_representers = {}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_implicit_resolvers = {}
|
| yaml_path_resolvers = {}
pyyaml.CBaseLoader
Python Library Documentation: class CBaseLoader in module yaml.cyaml
class CBaseLoader(yaml._yaml.CParser, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
| CBaseLoader(stream)
|
| Method resolution order:
| CBaseLoader
| yaml._yaml.CParser
| yaml.constructor.BaseConstructor
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CParser:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| check_event(self, *choices)
|
| check_node(self)
|
| check_token(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| get_node(self)
|
| get_single_node(self)
|
| get_token(self)
|
| peek_event(self)
|
| peek_token(self)
|
| raw_parse(self)
|
| raw_scan(self)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CParser:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CParser
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CParser:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_mapping(self, node, deep=False)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.BaseConstructor:
|
| yaml_constructors = {}
|
| yaml_multi_constructors = {}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_implicit_resolvers = {}
|
| yaml_path_resolvers = {}
pyyaml.CDumper
Python Library Documentation: class CDumper in module yaml.cyaml
class CDumper(yaml._yaml.CEmitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
| 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)
|
| Method resolution order:
| CDumper
| yaml._yaml.CEmitter
| yaml.serializer.Serializer
| yaml.representer.Representer
| yaml.representer.SafeRepresenter
| yaml.representer.BaseRepresenter
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CEmitter:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| close(self)
|
| dispose(self)
|
| emit(self, event_object)
|
| open(self)
|
| serialize(self, node)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CEmitter:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CEmitter
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CEmitter:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.serializer.Serializer:
|
| anchor_node(self, node)
|
| generate_anchor(self, node)
|
| serialize_node(self, node, parent, index)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.serializer.Serializer:
|
| ANCHOR_TEMPLATE = 'id%03d'
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.Representer:
|
| represent_complex(self, data)
|
| represent_module(self, data)
|
| represent_name(self, data)
|
| represent_object(self, data)
|
| represent_ordered_dict(self, data)
|
| represent_tuple(self, data)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.Representer:
|
| yaml_multi_representers = {<class 'type'>: <function Representer.repre...
|
| yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.rep...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.SafeRepresenter:
|
| ignore_aliases(self, data)
|
| represent_binary(self, data)
|
| represent_bool(self, data)
|
| represent_date(self, data)
|
| represent_datetime(self, data)
|
| represent_dict(self, data)
|
| represent_float(self, data)
|
| represent_int(self, data)
|
| represent_list(self, data)
|
| represent_none(self, data)
|
| represent_set(self, data)
|
| represent_str(self, data)
|
| represent_undefined(self, data)
|
| represent_yaml_object(self, tag, data, cls, flow_style=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.SafeRepresenter:
|
| inf_value = inf
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.CFullLoader
Python Library Documentation: class CFullLoader in module yaml.cyaml
class CFullLoader(yaml._yaml.CParser, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
| CFullLoader(stream)
|
| Method resolution order:
| CFullLoader
| yaml._yaml.CParser
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CParser:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| check_event(self, *choices)
|
| check_node(self)
|
| check_token(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| get_node(self)
|
| get_single_node(self)
|
| get_token(self)
|
| peek_event(self)
|
| peek_token(self)
|
| raw_parse(self)
|
| raw_scan(self)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CParser:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CParser
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CParser:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| find_python_module(self, name, mark, unsafe=False)
|
| find_python_name(self, name, mark, unsafe=False)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False, unsafe=False)
|
| set_python_instance_state(self, instance, state, unsafe=False)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/name:': <function...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.CLoader
Python Library Documentation: class CLoader in module yaml.cyaml
class CLoader(yaml._yaml.CParser, yaml.constructor.Constructor, yaml.resolver.Resolver)
| CLoader(stream)
|
| Method resolution order:
| CLoader
| yaml._yaml.CParser
| yaml.constructor.Constructor
| yaml.constructor.UnsafeConstructor
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CParser:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| check_event(self, *choices)
|
| check_node(self)
|
| check_token(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| get_node(self)
|
| get_single_node(self)
|
| get_token(self)
|
| peek_event(self)
|
| peek_token(self)
|
| raw_parse(self)
|
| raw_scan(self)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CParser:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CParser
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CParser:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.UnsafeConstructor:
|
| find_python_module(self, name, mark)
|
| find_python_name(self, name, mark)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False)
|
| set_python_instance_state(self, instance, state)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.UnsafeConstructor:
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/module:': <functi...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.CSafeDumper
Python Library Documentation: class CSafeDumper in module yaml.cyaml
class CSafeDumper(yaml._yaml.CEmitter, yaml.representer.SafeRepresenter, yaml.resolver.Resolver)
| CSafeDumper(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)
|
| Method resolution order:
| CSafeDumper
| yaml._yaml.CEmitter
| yaml.representer.SafeRepresenter
| yaml.representer.BaseRepresenter
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CEmitter:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| close(self)
|
| dispose(self)
|
| emit(self, event_object)
|
| open(self)
|
| serialize(self, node)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CEmitter:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CEmitter
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CEmitter:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.SafeRepresenter:
|
| ignore_aliases(self, data)
|
| represent_binary(self, data)
|
| represent_bool(self, data)
|
| represent_date(self, data)
|
| represent_datetime(self, data)
|
| represent_dict(self, data)
|
| represent_float(self, data)
|
| represent_int(self, data)
|
| represent_list(self, data)
|
| represent_none(self, data)
|
| represent_set(self, data)
|
| represent_str(self, data)
|
| represent_undefined(self, data)
|
| represent_yaml_object(self, tag, data, cls, flow_style=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.SafeRepresenter:
|
| inf_value = inf
|
| yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.rep...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.BaseRepresenter:
|
| yaml_multi_representers = {}
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.CSafeLoader
Python Library Documentation: class CSafeLoader in module yaml.cyaml
class CSafeLoader(yaml._yaml.CParser, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
| CSafeLoader(stream)
|
| Method resolution order:
| CSafeLoader
| yaml._yaml.CParser
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CParser:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| check_event(self, *choices)
|
| check_node(self)
|
| check_token(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| get_node(self)
|
| get_single_node(self)
|
| get_token(self)
|
| peek_event(self)
|
| peek_token(self)
|
| raw_parse(self)
|
| raw_scan(self)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CParser:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CParser
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CParser:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.BaseConstructor:
|
| yaml_multi_constructors = {}
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.CUnsafeLoader
Python Library Documentation: class CUnsafeLoader in module yaml.cyaml
class CUnsafeLoader(yaml._yaml.CParser, yaml.constructor.UnsafeConstructor, yaml.resolver.Resolver)
| CUnsafeLoader(stream)
|
| Method resolution order:
| CUnsafeLoader
| yaml._yaml.CParser
| yaml.constructor.UnsafeConstructor
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CParser:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| check_event(self, *choices)
|
| check_node(self)
|
| check_token(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| get_node(self)
|
| get_single_node(self)
|
| get_token(self)
|
| peek_event(self)
|
| peek_token(self)
|
| raw_parse(self)
|
| raw_scan(self)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CParser:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CParser
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CParser:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.UnsafeConstructor:
|
| find_python_module(self, name, mark)
|
| find_python_name(self, name, mark)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False)
|
| set_python_instance_state(self, instance, state)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.UnsafeConstructor:
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/module:': <functi...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.CollectionEndEvent
Python Library Documentation: class CollectionEndEvent in module yaml.events class CollectionEndEvent(Event) | CollectionEndEvent(start_mark=None, end_mark=None) | | Method resolution order: | CollectionEndEvent | Event | builtins.object | | Methods inherited from Event: | | __init__(self, start_mark=None, end_mark=None) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.CollectionNode
Python Library Documentation: class CollectionNode in module yaml.nodes class CollectionNode(Node) | CollectionNode(tag, value, start_mark=None, end_mark=None, flow_style=None) | | Method resolution order: | CollectionNode | Node | builtins.object | | Methods defined here: | | __init__(self, tag, value, start_mark=None, end_mark=None, flow_style=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Node: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.CollectionStartEvent
Python Library Documentation: class CollectionStartEvent in module yaml.events class CollectionStartEvent(NodeEvent) | CollectionStartEvent(anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None) | | Method resolution order: | CollectionStartEvent | NodeEvent | Event | builtins.object | | Methods defined here: | | __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Event: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.DirectiveToken
Python Library Documentation: class DirectiveToken in module yaml.tokens class DirectiveToken(Token) | DirectiveToken(name, value, start_mark, end_mark) | | Method resolution order: | DirectiveToken | Token | builtins.object | | Methods defined here: | | __init__(self, name, value, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | id = '<directive>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.DocumentEndEvent
Python Library Documentation: class DocumentEndEvent in module yaml.events class DocumentEndEvent(Event) | DocumentEndEvent(start_mark=None, end_mark=None, explicit=None) | | Method resolution order: | DocumentEndEvent | Event | builtins.object | | Methods defined here: | | __init__(self, start_mark=None, end_mark=None, explicit=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Event: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.DocumentEndToken
Python Library Documentation: class DocumentEndToken in module yaml.tokens class DocumentEndToken(Token) | DocumentEndToken(start_mark, end_mark) | | Method resolution order: | DocumentEndToken | Token | builtins.object | | Data and other attributes defined here: | | id = '<document end>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.DocumentStartEvent
Python Library Documentation: class DocumentStartEvent in module yaml.events class DocumentStartEvent(Event) | DocumentStartEvent(start_mark=None, end_mark=None, explicit=None, version=None, tags=None) | | Method resolution order: | DocumentStartEvent | Event | builtins.object | | Methods defined here: | | __init__(self, start_mark=None, end_mark=None, explicit=None, version=None, tags=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Event: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.DocumentStartToken
Python Library Documentation: class DocumentStartToken in module yaml.tokens class DocumentStartToken(Token) | DocumentStartToken(start_mark, end_mark) | | Method resolution order: | DocumentStartToken | Token | builtins.object | | Data and other attributes defined here: | | id = '<document start>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.Dumper
Python Library Documentation: class Dumper in module yaml.dumper
class Dumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
| Dumper(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)
|
| Method resolution order:
| Dumper
| yaml.emitter.Emitter
| yaml.serializer.Serializer
| yaml.representer.Representer
| yaml.representer.SafeRepresenter
| yaml.representer.BaseRepresenter
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.emitter.Emitter:
|
| analyze_scalar(self, scalar)
|
| check_empty_document(self)
|
| check_empty_mapping(self)
|
| check_empty_sequence(self)
|
| check_simple_key(self)
|
| choose_scalar_style(self)
|
| determine_block_hints(self, text)
|
| dispose(self)
|
| emit(self, event)
|
| expect_alias(self)
|
| expect_block_mapping(self)
|
| expect_block_mapping_key(self, first=False)
|
| expect_block_mapping_simple_value(self)
|
| expect_block_mapping_value(self)
|
| expect_block_sequence(self)
|
| expect_block_sequence_item(self, first=False)
|
| expect_document_end(self)
|
| expect_document_root(self)
|
| expect_document_start(self, first=False)
|
| expect_first_block_mapping_key(self)
|
| expect_first_block_sequence_item(self)
|
| expect_first_document_start(self)
|
| expect_first_flow_mapping_key(self)
|
| expect_first_flow_sequence_item(self)
|
| expect_flow_mapping(self)
|
| expect_flow_mapping_key(self)
|
| expect_flow_mapping_simple_value(self)
|
| expect_flow_mapping_value(self)
|
| expect_flow_sequence(self)
|
| expect_flow_sequence_item(self)
|
| expect_node(self, root=False, sequence=False, mapping=False, simple_key=False)
|
| expect_nothing(self)
|
| expect_scalar(self)
|
| expect_stream_start(self)
|
| flush_stream(self)
|
| increase_indent(self, flow=False, indentless=False)
|
| need_events(self, count)
|
| need_more_events(self)
|
| prepare_anchor(self, anchor)
|
| prepare_tag(self, tag)
|
| prepare_tag_handle(self, handle)
|
| prepare_tag_prefix(self, prefix)
|
| prepare_version(self, version)
|
| process_anchor(self, indicator)
|
| process_scalar(self)
|
| process_tag(self)
|
| write_double_quoted(self, text, split=True)
|
| write_folded(self, text)
|
| write_indent(self)
|
| write_indicator(self, indicator, need_whitespace, whitespace=False, indention=False)
|
| write_line_break(self, data=None)
|
| write_literal(self, text)
|
| write_plain(self, text, split=True)
|
| write_single_quoted(self, text, split=True)
|
| write_stream_end(self)
|
| write_stream_start(self)
|
| write_tag_directive(self, handle_text, prefix_text)
|
| write_version_directive(self, version_text)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.emitter.Emitter:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.emitter.Emitter:
|
| DEFAULT_TAG_PREFIXES = {'!': '!', 'tag:yaml.org,2002:': '!!'}
|
| ESCAPE_REPLACEMENTS = {'\x00': '0', '\x07': 'a', '\x08': 'b', '\t': 't...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.serializer.Serializer:
|
| anchor_node(self, node)
|
| close(self)
|
| generate_anchor(self, node)
|
| open(self)
|
| serialize(self, node)
|
| serialize_node(self, node, parent, index)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.serializer.Serializer:
|
| ANCHOR_TEMPLATE = 'id%03d'
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.Representer:
|
| represent_complex(self, data)
|
| represent_module(self, data)
|
| represent_name(self, data)
|
| represent_object(self, data)
|
| represent_ordered_dict(self, data)
|
| represent_tuple(self, data)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.Representer:
|
| yaml_multi_representers = {<class 'type'>: <function Representer.repre...
|
| yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.rep...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.SafeRepresenter:
|
| ignore_aliases(self, data)
|
| represent_binary(self, data)
|
| represent_bool(self, data)
|
| represent_date(self, data)
|
| represent_datetime(self, data)
|
| represent_dict(self, data)
|
| represent_float(self, data)
|
| represent_int(self, data)
|
| represent_list(self, data)
|
| represent_none(self, data)
|
| represent_set(self, data)
|
| represent_str(self, data)
|
| represent_undefined(self, data)
|
| represent_yaml_object(self, tag, data, cls, flow_style=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.SafeRepresenter:
|
| inf_value = inf
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.Event
Python Library Documentation: class Event in module yaml.events class Event(builtins.object) | Event(start_mark=None, end_mark=None) | | Methods defined here: | | __init__(self, start_mark=None, end_mark=None) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.FlowEntryToken
Python Library Documentation: class FlowEntryToken in module yaml.tokens class FlowEntryToken(Token) | FlowEntryToken(start_mark, end_mark) | | Method resolution order: | FlowEntryToken | Token | builtins.object | | Data and other attributes defined here: | | id = ',' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.FlowMappingEndToken
Python Library Documentation: class FlowMappingEndToken in module yaml.tokens class FlowMappingEndToken(Token) | FlowMappingEndToken(start_mark, end_mark) | | Method resolution order: | FlowMappingEndToken | Token | builtins.object | | Data and other attributes defined here: | | id = '}' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.FlowMappingStartToken
Python Library Documentation: class FlowMappingStartToken in module yaml.tokens
class FlowMappingStartToken(Token)
| FlowMappingStartToken(start_mark, end_mark)
|
| Method resolution order:
| FlowMappingStartToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '{'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
pyyaml.FlowSequenceEndToken
Python Library Documentation: class FlowSequenceEndToken in module yaml.tokens class FlowSequenceEndToken(Token) | FlowSequenceEndToken(start_mark, end_mark) | | Method resolution order: | FlowSequenceEndToken | Token | builtins.object | | Data and other attributes defined here: | | id = ']' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.FlowSequenceStartToken
Python Library Documentation: class FlowSequenceStartToken in module yaml.tokens class FlowSequenceStartToken(Token) | FlowSequenceStartToken(start_mark, end_mark) | | Method resolution order: | FlowSequenceStartToken | Token | builtins.object | | Data and other attributes defined here: | | id = '[' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.FullLoader
Python Library Documentation: class FullLoader in module yaml.loader
class FullLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
| FullLoader(stream)
|
| Method resolution order:
| FullLoader
| yaml.reader.Reader
| yaml.scanner.Scanner
| yaml.parser.Parser
| yaml.composer.Composer
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize the scanner.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.reader.Reader:
|
| check_printable(self, data)
|
| determine_encoding(self)
|
| forward(self, length=1)
|
| get_mark(self)
|
| peek(self, index=0)
|
| prefix(self, length=1)
|
| update(self, length)
|
| update_raw(self, size=4096)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.reader.Reader:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.reader.Reader:
|
| NON_PRINTABLE = re.compile('[^\t\n\r -~\x85\xa0-\ud7ff\ue000-�𐀀-\U0010...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.scanner.Scanner:
|
| add_indent(self, column)
|
| check_block_entry(self)
|
| check_directive(self)
|
| check_document_end(self)
|
| check_document_start(self)
|
| check_key(self)
|
| check_plain(self)
|
| check_token(self, *choices)
|
| check_value(self)
|
| fetch_alias(self)
|
| fetch_anchor(self)
|
| fetch_block_entry(self)
|
| fetch_block_scalar(self, style)
|
| fetch_directive(self)
|
| fetch_document_end(self)
|
| fetch_document_indicator(self, TokenClass)
|
| fetch_document_start(self)
|
| fetch_double(self)
|
| fetch_flow_collection_end(self, TokenClass)
|
| fetch_flow_collection_start(self, TokenClass)
|
| fetch_flow_entry(self)
|
| fetch_flow_mapping_end(self)
|
| fetch_flow_mapping_start(self)
|
| fetch_flow_scalar(self, style)
|
| fetch_flow_sequence_end(self)
|
| fetch_flow_sequence_start(self)
|
| fetch_folded(self)
|
| fetch_key(self)
|
| fetch_literal(self)
|
| fetch_more_tokens(self)
|
| fetch_plain(self)
|
| fetch_single(self)
|
| fetch_stream_end(self)
|
| fetch_stream_start(self)
|
| fetch_tag(self)
|
| fetch_value(self)
|
| get_token(self)
|
| need_more_tokens(self)
|
| next_possible_simple_key(self)
|
| peek_token(self)
|
| remove_possible_simple_key(self)
|
| save_possible_simple_key(self)
|
| scan_anchor(self, TokenClass)
|
| scan_block_scalar(self, style)
|
| scan_block_scalar_breaks(self, indent)
|
| scan_block_scalar_ignored_line(self, start_mark)
|
| scan_block_scalar_indentation(self)
|
| scan_block_scalar_indicators(self, start_mark)
|
| scan_directive(self)
|
| scan_directive_ignored_line(self, start_mark)
|
| scan_directive_name(self, start_mark)
|
| scan_flow_scalar(self, style)
|
| scan_flow_scalar_breaks(self, double, start_mark)
|
| scan_flow_scalar_non_spaces(self, double, start_mark)
|
| scan_flow_scalar_spaces(self, double, start_mark)
|
| scan_line_break(self)
|
| scan_plain(self)
|
| scan_plain_spaces(self, indent, start_mark)
|
| scan_tag(self)
|
| scan_tag_directive_handle(self, start_mark)
|
| scan_tag_directive_prefix(self, start_mark)
|
| scan_tag_directive_value(self, start_mark)
|
| scan_tag_handle(self, name, start_mark)
|
| scan_tag_uri(self, name, start_mark)
|
| scan_to_next_token(self)
|
| scan_uri_escapes(self, name, start_mark)
|
| scan_yaml_directive_number(self, start_mark)
|
| scan_yaml_directive_value(self, start_mark)
|
| stale_possible_simple_keys(self)
|
| unwind_indent(self, column)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.scanner.Scanner:
|
| ESCAPE_CODES = {'U': 8, 'u': 4, 'x': 2}
|
| ESCAPE_REPLACEMENTS = {'\t': '\t', ' ': ' ', '"': '"', '/': '/', '0': ...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.parser.Parser:
|
| check_event(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| parse_block_mapping_first_key(self)
|
| parse_block_mapping_key(self)
|
| parse_block_mapping_value(self)
|
| parse_block_node(self)
|
| parse_block_node_or_indentless_sequence(self)
|
| parse_block_sequence_entry(self)
|
| parse_block_sequence_first_entry(self)
|
| parse_document_content(self)
|
| parse_document_end(self)
|
| parse_document_start(self)
|
| parse_flow_mapping_empty_value(self)
|
| parse_flow_mapping_first_key(self)
|
| parse_flow_mapping_key(self, first=False)
|
| parse_flow_mapping_value(self)
|
| parse_flow_node(self)
|
| parse_flow_sequence_entry(self, first=False)
|
| parse_flow_sequence_entry_mapping_end(self)
|
| parse_flow_sequence_entry_mapping_key(self)
|
| parse_flow_sequence_entry_mapping_value(self)
|
| parse_flow_sequence_first_entry(self)
|
| parse_implicit_document_start(self)
|
| parse_indentless_sequence_entry(self)
|
| parse_node(self, block=False, indentless_sequence=False)
|
| parse_stream_start(self)
|
| peek_event(self)
|
| process_directives(self)
|
| process_empty_scalar(self, mark)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.parser.Parser:
|
| DEFAULT_TAGS = {'!': '!', '!!': 'tag:yaml.org,2002:'}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.composer.Composer:
|
| check_node(self)
|
| compose_document(self)
|
| compose_mapping_node(self, anchor)
|
| compose_node(self, parent, index)
|
| compose_scalar_node(self, anchor)
|
| compose_sequence_node(self, anchor)
|
| get_node(self)
|
| get_single_node(self)
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| find_python_module(self, name, mark, unsafe=False)
|
| find_python_name(self, name, mark, unsafe=False)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False, unsafe=False)
|
| set_python_instance_state(self, instance, state, unsafe=False)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/name:': <function...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.KeyToken
Python Library Documentation: class KeyToken in module yaml.tokens class KeyToken(Token) | KeyToken(start_mark, end_mark) | | Method resolution order: | KeyToken | Token | builtins.object | | Data and other attributes defined here: | | id = '?' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.Loader
Python Library Documentation: class Loader in module yaml.loader
class Loader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
| Loader(stream)
|
| Method resolution order:
| Loader
| yaml.reader.Reader
| yaml.scanner.Scanner
| yaml.parser.Parser
| yaml.composer.Composer
| yaml.constructor.Constructor
| yaml.constructor.UnsafeConstructor
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize the scanner.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.reader.Reader:
|
| check_printable(self, data)
|
| determine_encoding(self)
|
| forward(self, length=1)
|
| get_mark(self)
|
| peek(self, index=0)
|
| prefix(self, length=1)
|
| update(self, length)
|
| update_raw(self, size=4096)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.reader.Reader:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.reader.Reader:
|
| NON_PRINTABLE = re.compile('[^\t\n\r -~\x85\xa0-\ud7ff\ue000-�𐀀-\U0010...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.scanner.Scanner:
|
| add_indent(self, column)
|
| check_block_entry(self)
|
| check_directive(self)
|
| check_document_end(self)
|
| check_document_start(self)
|
| check_key(self)
|
| check_plain(self)
|
| check_token(self, *choices)
|
| check_value(self)
|
| fetch_alias(self)
|
| fetch_anchor(self)
|
| fetch_block_entry(self)
|
| fetch_block_scalar(self, style)
|
| fetch_directive(self)
|
| fetch_document_end(self)
|
| fetch_document_indicator(self, TokenClass)
|
| fetch_document_start(self)
|
| fetch_double(self)
|
| fetch_flow_collection_end(self, TokenClass)
|
| fetch_flow_collection_start(self, TokenClass)
|
| fetch_flow_entry(self)
|
| fetch_flow_mapping_end(self)
|
| fetch_flow_mapping_start(self)
|
| fetch_flow_scalar(self, style)
|
| fetch_flow_sequence_end(self)
|
| fetch_flow_sequence_start(self)
|
| fetch_folded(self)
|
| fetch_key(self)
|
| fetch_literal(self)
|
| fetch_more_tokens(self)
|
| fetch_plain(self)
|
| fetch_single(self)
|
| fetch_stream_end(self)
|
| fetch_stream_start(self)
|
| fetch_tag(self)
|
| fetch_value(self)
|
| get_token(self)
|
| need_more_tokens(self)
|
| next_possible_simple_key(self)
|
| peek_token(self)
|
| remove_possible_simple_key(self)
|
| save_possible_simple_key(self)
|
| scan_anchor(self, TokenClass)
|
| scan_block_scalar(self, style)
|
| scan_block_scalar_breaks(self, indent)
|
| scan_block_scalar_ignored_line(self, start_mark)
|
| scan_block_scalar_indentation(self)
|
| scan_block_scalar_indicators(self, start_mark)
|
| scan_directive(self)
|
| scan_directive_ignored_line(self, start_mark)
|
| scan_directive_name(self, start_mark)
|
| scan_flow_scalar(self, style)
|
| scan_flow_scalar_breaks(self, double, start_mark)
|
| scan_flow_scalar_non_spaces(self, double, start_mark)
|
| scan_flow_scalar_spaces(self, double, start_mark)
|
| scan_line_break(self)
|
| scan_plain(self)
|
| scan_plain_spaces(self, indent, start_mark)
|
| scan_tag(self)
|
| scan_tag_directive_handle(self, start_mark)
|
| scan_tag_directive_prefix(self, start_mark)
|
| scan_tag_directive_value(self, start_mark)
|
| scan_tag_handle(self, name, start_mark)
|
| scan_tag_uri(self, name, start_mark)
|
| scan_to_next_token(self)
|
| scan_uri_escapes(self, name, start_mark)
|
| scan_yaml_directive_number(self, start_mark)
|
| scan_yaml_directive_value(self, start_mark)
|
| stale_possible_simple_keys(self)
|
| unwind_indent(self, column)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.scanner.Scanner:
|
| ESCAPE_CODES = {'U': 8, 'u': 4, 'x': 2}
|
| ESCAPE_REPLACEMENTS = {'\t': '\t', ' ': ' ', '"': '"', '/': '/', '0': ...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.parser.Parser:
|
| check_event(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| parse_block_mapping_first_key(self)
|
| parse_block_mapping_key(self)
|
| parse_block_mapping_value(self)
|
| parse_block_node(self)
|
| parse_block_node_or_indentless_sequence(self)
|
| parse_block_sequence_entry(self)
|
| parse_block_sequence_first_entry(self)
|
| parse_document_content(self)
|
| parse_document_end(self)
|
| parse_document_start(self)
|
| parse_flow_mapping_empty_value(self)
|
| parse_flow_mapping_first_key(self)
|
| parse_flow_mapping_key(self, first=False)
|
| parse_flow_mapping_value(self)
|
| parse_flow_node(self)
|
| parse_flow_sequence_entry(self, first=False)
|
| parse_flow_sequence_entry_mapping_end(self)
|
| parse_flow_sequence_entry_mapping_key(self)
|
| parse_flow_sequence_entry_mapping_value(self)
|
| parse_flow_sequence_first_entry(self)
|
| parse_implicit_document_start(self)
|
| parse_indentless_sequence_entry(self)
|
| parse_node(self, block=False, indentless_sequence=False)
|
| parse_stream_start(self)
|
| peek_event(self)
|
| process_directives(self)
|
| process_empty_scalar(self, mark)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.parser.Parser:
|
| DEFAULT_TAGS = {'!': '!', '!!': 'tag:yaml.org,2002:'}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.composer.Composer:
|
| check_node(self)
|
| compose_document(self)
|
| compose_mapping_node(self, anchor)
|
| compose_node(self, parent, index)
|
| compose_scalar_node(self, anchor)
|
| compose_sequence_node(self, anchor)
|
| get_node(self)
|
| get_single_node(self)
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.UnsafeConstructor:
|
| find_python_module(self, name, mark)
|
| find_python_name(self, name, mark)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False)
|
| set_python_instance_state(self, instance, state)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.UnsafeConstructor:
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/module:': <functi...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.MappingEndEvent
Python Library Documentation: class MappingEndEvent in module yaml.events class MappingEndEvent(CollectionEndEvent) | MappingEndEvent(start_mark=None, end_mark=None) | | Method resolution order: | MappingEndEvent | CollectionEndEvent | Event | builtins.object | | Methods inherited from Event: | | __init__(self, start_mark=None, end_mark=None) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.MappingNode
Python Library Documentation: class MappingNode in module yaml.nodes class MappingNode(CollectionNode) | MappingNode(tag, value, start_mark=None, end_mark=None, flow_style=None) | | Method resolution order: | MappingNode | CollectionNode | Node | builtins.object | | Data and other attributes defined here: | | id = 'mapping' | | ---------------------------------------------------------------------- | Methods inherited from CollectionNode: | | __init__(self, tag, value, start_mark=None, end_mark=None, flow_style=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Node: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.MappingStartEvent
Python Library Documentation: class MappingStartEvent in module yaml.events class MappingStartEvent(CollectionStartEvent) | MappingStartEvent(anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None) | | Method resolution order: | MappingStartEvent | CollectionStartEvent | NodeEvent | Event | builtins.object | | Methods inherited from CollectionStartEvent: | | __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Event: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.Mark
Python Library Documentation: class Mark in module yaml.error class Mark(builtins.object) | Mark(name, index, line, column, buffer, pointer) | | Methods defined here: | | __init__(self, name, index, line, column, buffer, pointer) | Initialize self. See help(type(self)) for accurate signature. | | __str__(self) | Return str(self). | | get_snippet(self, indent=4, max_length=75) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.MarkedYAMLError
Python Library Documentation: class MarkedYAMLError in module yaml.error class MarkedYAMLError(YAMLError) | MarkedYAMLError(context=None, context_mark=None, problem=None, problem_mark=None, note=None) | | Method resolution order: | MarkedYAMLError | YAMLError | builtins.Exception | builtins.BaseException | builtins.object | | Methods defined here: | | __init__(self, context=None, context_mark=None, problem=None, problem_mark=None, note=None) | Initialize self. See help(type(self)) for accurate signature. | | __str__(self) | Return str(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from YAMLError: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
pyyaml.Node
Python Library Documentation: class Node in module yaml.nodes class Node(builtins.object) | Node(tag, value, start_mark, end_mark) | | Methods defined here: | | __init__(self, tag, value, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.NodeEvent
Python Library Documentation: class NodeEvent in module yaml.events class NodeEvent(Event) | NodeEvent(anchor, start_mark=None, end_mark=None) | | Method resolution order: | NodeEvent | Event | builtins.object | | Methods defined here: | | __init__(self, anchor, start_mark=None, end_mark=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Event: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.SafeDumper
Python Library Documentation: class SafeDumper in module yaml.dumper
class SafeDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.SafeRepresenter, yaml.resolver.Resolver)
| SafeDumper(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)
|
| Method resolution order:
| SafeDumper
| yaml.emitter.Emitter
| yaml.serializer.Serializer
| yaml.representer.SafeRepresenter
| yaml.representer.BaseRepresenter
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.emitter.Emitter:
|
| analyze_scalar(self, scalar)
|
| check_empty_document(self)
|
| check_empty_mapping(self)
|
| check_empty_sequence(self)
|
| check_simple_key(self)
|
| choose_scalar_style(self)
|
| determine_block_hints(self, text)
|
| dispose(self)
|
| emit(self, event)
|
| expect_alias(self)
|
| expect_block_mapping(self)
|
| expect_block_mapping_key(self, first=False)
|
| expect_block_mapping_simple_value(self)
|
| expect_block_mapping_value(self)
|
| expect_block_sequence(self)
|
| expect_block_sequence_item(self, first=False)
|
| expect_document_end(self)
|
| expect_document_root(self)
|
| expect_document_start(self, first=False)
|
| expect_first_block_mapping_key(self)
|
| expect_first_block_sequence_item(self)
|
| expect_first_document_start(self)
|
| expect_first_flow_mapping_key(self)
|
| expect_first_flow_sequence_item(self)
|
| expect_flow_mapping(self)
|
| expect_flow_mapping_key(self)
|
| expect_flow_mapping_simple_value(self)
|
| expect_flow_mapping_value(self)
|
| expect_flow_sequence(self)
|
| expect_flow_sequence_item(self)
|
| expect_node(self, root=False, sequence=False, mapping=False, simple_key=False)
|
| expect_nothing(self)
|
| expect_scalar(self)
|
| expect_stream_start(self)
|
| flush_stream(self)
|
| increase_indent(self, flow=False, indentless=False)
|
| need_events(self, count)
|
| need_more_events(self)
|
| prepare_anchor(self, anchor)
|
| prepare_tag(self, tag)
|
| prepare_tag_handle(self, handle)
|
| prepare_tag_prefix(self, prefix)
|
| prepare_version(self, version)
|
| process_anchor(self, indicator)
|
| process_scalar(self)
|
| process_tag(self)
|
| write_double_quoted(self, text, split=True)
|
| write_folded(self, text)
|
| write_indent(self)
|
| write_indicator(self, indicator, need_whitespace, whitespace=False, indention=False)
|
| write_line_break(self, data=None)
|
| write_literal(self, text)
|
| write_plain(self, text, split=True)
|
| write_single_quoted(self, text, split=True)
|
| write_stream_end(self)
|
| write_stream_start(self)
|
| write_tag_directive(self, handle_text, prefix_text)
|
| write_version_directive(self, version_text)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.emitter.Emitter:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.emitter.Emitter:
|
| DEFAULT_TAG_PREFIXES = {'!': '!', 'tag:yaml.org,2002:': '!!'}
|
| ESCAPE_REPLACEMENTS = {'\x00': '0', '\x07': 'a', '\x08': 'b', '\t': 't...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.serializer.Serializer:
|
| anchor_node(self, node)
|
| close(self)
|
| generate_anchor(self, node)
|
| open(self)
|
| serialize(self, node)
|
| serialize_node(self, node, parent, index)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.serializer.Serializer:
|
| ANCHOR_TEMPLATE = 'id%03d'
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.SafeRepresenter:
|
| ignore_aliases(self, data)
|
| represent_binary(self, data)
|
| represent_bool(self, data)
|
| represent_date(self, data)
|
| represent_datetime(self, data)
|
| represent_dict(self, data)
|
| represent_float(self, data)
|
| represent_int(self, data)
|
| represent_list(self, data)
|
| represent_none(self, data)
|
| represent_set(self, data)
|
| represent_str(self, data)
|
| represent_undefined(self, data)
|
| represent_yaml_object(self, tag, data, cls, flow_style=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.SafeRepresenter:
|
| inf_value = inf
|
| yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.rep...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.BaseRepresenter:
|
| yaml_multi_representers = {}
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.SafeLoader
Python Library Documentation: class SafeLoader in module yaml.loader
class SafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
| SafeLoader(stream)
|
| Method resolution order:
| SafeLoader
| yaml.reader.Reader
| yaml.scanner.Scanner
| yaml.parser.Parser
| yaml.composer.Composer
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize the scanner.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.reader.Reader:
|
| check_printable(self, data)
|
| determine_encoding(self)
|
| forward(self, length=1)
|
| get_mark(self)
|
| peek(self, index=0)
|
| prefix(self, length=1)
|
| update(self, length)
|
| update_raw(self, size=4096)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.reader.Reader:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.reader.Reader:
|
| NON_PRINTABLE = re.compile('[^\t\n\r -~\x85\xa0-\ud7ff\ue000-�𐀀-\U0010...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.scanner.Scanner:
|
| add_indent(self, column)
|
| check_block_entry(self)
|
| check_directive(self)
|
| check_document_end(self)
|
| check_document_start(self)
|
| check_key(self)
|
| check_plain(self)
|
| check_token(self, *choices)
|
| check_value(self)
|
| fetch_alias(self)
|
| fetch_anchor(self)
|
| fetch_block_entry(self)
|
| fetch_block_scalar(self, style)
|
| fetch_directive(self)
|
| fetch_document_end(self)
|
| fetch_document_indicator(self, TokenClass)
|
| fetch_document_start(self)
|
| fetch_double(self)
|
| fetch_flow_collection_end(self, TokenClass)
|
| fetch_flow_collection_start(self, TokenClass)
|
| fetch_flow_entry(self)
|
| fetch_flow_mapping_end(self)
|
| fetch_flow_mapping_start(self)
|
| fetch_flow_scalar(self, style)
|
| fetch_flow_sequence_end(self)
|
| fetch_flow_sequence_start(self)
|
| fetch_folded(self)
|
| fetch_key(self)
|
| fetch_literal(self)
|
| fetch_more_tokens(self)
|
| fetch_plain(self)
|
| fetch_single(self)
|
| fetch_stream_end(self)
|
| fetch_stream_start(self)
|
| fetch_tag(self)
|
| fetch_value(self)
|
| get_token(self)
|
| need_more_tokens(self)
|
| next_possible_simple_key(self)
|
| peek_token(self)
|
| remove_possible_simple_key(self)
|
| save_possible_simple_key(self)
|
| scan_anchor(self, TokenClass)
|
| scan_block_scalar(self, style)
|
| scan_block_scalar_breaks(self, indent)
|
| scan_block_scalar_ignored_line(self, start_mark)
|
| scan_block_scalar_indentation(self)
|
| scan_block_scalar_indicators(self, start_mark)
|
| scan_directive(self)
|
| scan_directive_ignored_line(self, start_mark)
|
| scan_directive_name(self, start_mark)
|
| scan_flow_scalar(self, style)
|
| scan_flow_scalar_breaks(self, double, start_mark)
|
| scan_flow_scalar_non_spaces(self, double, start_mark)
|
| scan_flow_scalar_spaces(self, double, start_mark)
|
| scan_line_break(self)
|
| scan_plain(self)
|
| scan_plain_spaces(self, indent, start_mark)
|
| scan_tag(self)
|
| scan_tag_directive_handle(self, start_mark)
|
| scan_tag_directive_prefix(self, start_mark)
|
| scan_tag_directive_value(self, start_mark)
|
| scan_tag_handle(self, name, start_mark)
|
| scan_tag_uri(self, name, start_mark)
|
| scan_to_next_token(self)
|
| scan_uri_escapes(self, name, start_mark)
|
| scan_yaml_directive_number(self, start_mark)
|
| scan_yaml_directive_value(self, start_mark)
|
| stale_possible_simple_keys(self)
|
| unwind_indent(self, column)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.scanner.Scanner:
|
| ESCAPE_CODES = {'U': 8, 'u': 4, 'x': 2}
|
| ESCAPE_REPLACEMENTS = {'\t': '\t', ' ': ' ', '"': '"', '/': '/', '0': ...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.parser.Parser:
|
| check_event(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| parse_block_mapping_first_key(self)
|
| parse_block_mapping_key(self)
|
| parse_block_mapping_value(self)
|
| parse_block_node(self)
|
| parse_block_node_or_indentless_sequence(self)
|
| parse_block_sequence_entry(self)
|
| parse_block_sequence_first_entry(self)
|
| parse_document_content(self)
|
| parse_document_end(self)
|
| parse_document_start(self)
|
| parse_flow_mapping_empty_value(self)
|
| parse_flow_mapping_first_key(self)
|
| parse_flow_mapping_key(self, first=False)
|
| parse_flow_mapping_value(self)
|
| parse_flow_node(self)
|
| parse_flow_sequence_entry(self, first=False)
|
| parse_flow_sequence_entry_mapping_end(self)
|
| parse_flow_sequence_entry_mapping_key(self)
|
| parse_flow_sequence_entry_mapping_value(self)
|
| parse_flow_sequence_first_entry(self)
|
| parse_implicit_document_start(self)
|
| parse_indentless_sequence_entry(self)
|
| parse_node(self, block=False, indentless_sequence=False)
|
| parse_stream_start(self)
|
| peek_event(self)
|
| process_directives(self)
|
| process_empty_scalar(self, mark)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.parser.Parser:
|
| DEFAULT_TAGS = {'!': '!', '!!': 'tag:yaml.org,2002:'}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.composer.Composer:
|
| check_node(self)
|
| compose_document(self)
|
| compose_mapping_node(self, anchor)
|
| compose_node(self, parent, index)
|
| compose_scalar_node(self, anchor)
|
| compose_sequence_node(self, anchor)
|
| get_node(self)
|
| get_single_node(self)
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.BaseConstructor:
|
| yaml_multi_constructors = {}
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.ScalarEvent
Python Library Documentation: class ScalarEvent in module yaml.events class ScalarEvent(NodeEvent) | ScalarEvent(anchor, tag, implicit, value, start_mark=None, end_mark=None, style=None) | | Method resolution order: | ScalarEvent | NodeEvent | Event | builtins.object | | Methods defined here: | | __init__(self, anchor, tag, implicit, value, start_mark=None, end_mark=None, style=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Event: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.ScalarNode
Python Library Documentation: class ScalarNode in module yaml.nodes class ScalarNode(Node) | ScalarNode(tag, value, start_mark=None, end_mark=None, style=None) | | Method resolution order: | ScalarNode | Node | builtins.object | | Methods defined here: | | __init__(self, tag, value, start_mark=None, end_mark=None, style=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | id = 'scalar' | | ---------------------------------------------------------------------- | Methods inherited from Node: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.ScalarToken
Python Library Documentation: class ScalarToken in module yaml.tokens class ScalarToken(Token) | ScalarToken(value, plain, start_mark, end_mark, style=None) | | Method resolution order: | ScalarToken | Token | builtins.object | | Methods defined here: | | __init__(self, value, plain, start_mark, end_mark, style=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | id = '<scalar>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.SequenceEndEvent
Python Library Documentation: class SequenceEndEvent in module yaml.events class SequenceEndEvent(CollectionEndEvent) | SequenceEndEvent(start_mark=None, end_mark=None) | | Method resolution order: | SequenceEndEvent | CollectionEndEvent | Event | builtins.object | | Methods inherited from Event: | | __init__(self, start_mark=None, end_mark=None) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.SequenceNode
Python Library Documentation: class SequenceNode in module yaml.nodes class SequenceNode(CollectionNode) | SequenceNode(tag, value, start_mark=None, end_mark=None, flow_style=None) | | Method resolution order: | SequenceNode | CollectionNode | Node | builtins.object | | Data and other attributes defined here: | | id = 'sequence' | | ---------------------------------------------------------------------- | Methods inherited from CollectionNode: | | __init__(self, tag, value, start_mark=None, end_mark=None, flow_style=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Node: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Node: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.SequenceStartEvent
Python Library Documentation: class SequenceStartEvent in module yaml.events class SequenceStartEvent(CollectionStartEvent) | SequenceStartEvent(anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None) | | Method resolution order: | SequenceStartEvent | CollectionStartEvent | NodeEvent | Event | builtins.object | | Methods inherited from CollectionStartEvent: | | __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Event: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.StreamEndEvent
Python Library Documentation: class StreamEndEvent in module yaml.events class StreamEndEvent(Event) | StreamEndEvent(start_mark=None, end_mark=None) | | Method resolution order: | StreamEndEvent | Event | builtins.object | | Methods inherited from Event: | | __init__(self, start_mark=None, end_mark=None) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.StreamEndToken
Python Library Documentation: class StreamEndToken in module yaml.tokens class StreamEndToken(Token) | StreamEndToken(start_mark, end_mark) | | Method resolution order: | StreamEndToken | Token | builtins.object | | Data and other attributes defined here: | | id = '<stream end>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.StreamStartEvent
Python Library Documentation: class StreamStartEvent in module yaml.events class StreamStartEvent(Event) | StreamStartEvent(start_mark=None, end_mark=None, encoding=None) | | Method resolution order: | StreamStartEvent | Event | builtins.object | | Methods defined here: | | __init__(self, start_mark=None, end_mark=None, encoding=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from Event: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Event: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.StreamStartToken
Python Library Documentation: class StreamStartToken in module yaml.tokens class StreamStartToken(Token) | StreamStartToken(start_mark=None, end_mark=None, encoding=None) | | Method resolution order: | StreamStartToken | Token | builtins.object | | Methods defined here: | | __init__(self, start_mark=None, end_mark=None, encoding=None) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | id = '<stream start>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.TagToken
Python Library Documentation: class TagToken in module yaml.tokens class TagToken(Token) | TagToken(value, start_mark, end_mark) | | Method resolution order: | TagToken | Token | builtins.object | | Methods defined here: | | __init__(self, value, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | id = '<tag>' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.Token
Python Library Documentation: class Token in module yaml.tokens class Token(builtins.object) | Token(start_mark, end_mark) | | Methods defined here: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.UnsafeLoader
Python Library Documentation: class UnsafeLoader in module yaml.loader
class UnsafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
| UnsafeLoader(stream)
|
| # UnsafeLoader is the same as Loader (which is and was always unsafe on
| # untrusted input). Use of either Loader or UnsafeLoader should be rare, since
| # FullLoad should be able to load almost all YAML safely. Loader is left intact
| # to ensure backwards compatibility.
|
| Method resolution order:
| UnsafeLoader
| yaml.reader.Reader
| yaml.scanner.Scanner
| yaml.parser.Parser
| yaml.composer.Composer
| yaml.constructor.Constructor
| yaml.constructor.UnsafeConstructor
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize the scanner.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.reader.Reader:
|
| check_printable(self, data)
|
| determine_encoding(self)
|
| forward(self, length=1)
|
| get_mark(self)
|
| peek(self, index=0)
|
| prefix(self, length=1)
|
| update(self, length)
|
| update_raw(self, size=4096)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.reader.Reader:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.reader.Reader:
|
| NON_PRINTABLE = re.compile('[^\t\n\r -~\x85\xa0-\ud7ff\ue000-�𐀀-\U0010...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.scanner.Scanner:
|
| add_indent(self, column)
|
| check_block_entry(self)
|
| check_directive(self)
|
| check_document_end(self)
|
| check_document_start(self)
|
| check_key(self)
|
| check_plain(self)
|
| check_token(self, *choices)
|
| check_value(self)
|
| fetch_alias(self)
|
| fetch_anchor(self)
|
| fetch_block_entry(self)
|
| fetch_block_scalar(self, style)
|
| fetch_directive(self)
|
| fetch_document_end(self)
|
| fetch_document_indicator(self, TokenClass)
|
| fetch_document_start(self)
|
| fetch_double(self)
|
| fetch_flow_collection_end(self, TokenClass)
|
| fetch_flow_collection_start(self, TokenClass)
|
| fetch_flow_entry(self)
|
| fetch_flow_mapping_end(self)
|
| fetch_flow_mapping_start(self)
|
| fetch_flow_scalar(self, style)
|
| fetch_flow_sequence_end(self)
|
| fetch_flow_sequence_start(self)
|
| fetch_folded(self)
|
| fetch_key(self)
|
| fetch_literal(self)
|
| fetch_more_tokens(self)
|
| fetch_plain(self)
|
| fetch_single(self)
|
| fetch_stream_end(self)
|
| fetch_stream_start(self)
|
| fetch_tag(self)
|
| fetch_value(self)
|
| get_token(self)
|
| need_more_tokens(self)
|
| next_possible_simple_key(self)
|
| peek_token(self)
|
| remove_possible_simple_key(self)
|
| save_possible_simple_key(self)
|
| scan_anchor(self, TokenClass)
|
| scan_block_scalar(self, style)
|
| scan_block_scalar_breaks(self, indent)
|
| scan_block_scalar_ignored_line(self, start_mark)
|
| scan_block_scalar_indentation(self)
|
| scan_block_scalar_indicators(self, start_mark)
|
| scan_directive(self)
|
| scan_directive_ignored_line(self, start_mark)
|
| scan_directive_name(self, start_mark)
|
| scan_flow_scalar(self, style)
|
| scan_flow_scalar_breaks(self, double, start_mark)
|
| scan_flow_scalar_non_spaces(self, double, start_mark)
|
| scan_flow_scalar_spaces(self, double, start_mark)
|
| scan_line_break(self)
|
| scan_plain(self)
|
| scan_plain_spaces(self, indent, start_mark)
|
| scan_tag(self)
|
| scan_tag_directive_handle(self, start_mark)
|
| scan_tag_directive_prefix(self, start_mark)
|
| scan_tag_directive_value(self, start_mark)
|
| scan_tag_handle(self, name, start_mark)
|
| scan_tag_uri(self, name, start_mark)
|
| scan_to_next_token(self)
|
| scan_uri_escapes(self, name, start_mark)
|
| scan_yaml_directive_number(self, start_mark)
|
| scan_yaml_directive_value(self, start_mark)
|
| stale_possible_simple_keys(self)
|
| unwind_indent(self, column)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.scanner.Scanner:
|
| ESCAPE_CODES = {'U': 8, 'u': 4, 'x': 2}
|
| ESCAPE_REPLACEMENTS = {'\t': '\t', ' ': ' ', '"': '"', '/': '/', '0': ...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.parser.Parser:
|
| check_event(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| parse_block_mapping_first_key(self)
|
| parse_block_mapping_key(self)
|
| parse_block_mapping_value(self)
|
| parse_block_node(self)
|
| parse_block_node_or_indentless_sequence(self)
|
| parse_block_sequence_entry(self)
|
| parse_block_sequence_first_entry(self)
|
| parse_document_content(self)
|
| parse_document_end(self)
|
| parse_document_start(self)
|
| parse_flow_mapping_empty_value(self)
|
| parse_flow_mapping_first_key(self)
|
| parse_flow_mapping_key(self, first=False)
|
| parse_flow_mapping_value(self)
|
| parse_flow_node(self)
|
| parse_flow_sequence_entry(self, first=False)
|
| parse_flow_sequence_entry_mapping_end(self)
|
| parse_flow_sequence_entry_mapping_key(self)
|
| parse_flow_sequence_entry_mapping_value(self)
|
| parse_flow_sequence_first_entry(self)
|
| parse_implicit_document_start(self)
|
| parse_indentless_sequence_entry(self)
|
| parse_node(self, block=False, indentless_sequence=False)
|
| parse_stream_start(self)
|
| peek_event(self)
|
| process_directives(self)
|
| process_empty_scalar(self, mark)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.parser.Parser:
|
| DEFAULT_TAGS = {'!': '!', '!!': 'tag:yaml.org,2002:'}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.composer.Composer:
|
| check_node(self)
|
| compose_document(self)
|
| compose_mapping_node(self, anchor)
|
| compose_node(self, parent, index)
|
| compose_scalar_node(self, anchor)
|
| compose_sequence_node(self, anchor)
|
| get_node(self)
|
| get_single_node(self)
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.UnsafeConstructor:
|
| find_python_module(self, name, mark)
|
| find_python_name(self, name, mark)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False)
|
| set_python_instance_state(self, instance, state)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.UnsafeConstructor:
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/module:': <functi...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
pyyaml.ValueToken
Python Library Documentation: class ValueToken in module yaml.tokens class ValueToken(Token) | ValueToken(start_mark, end_mark) | | Method resolution order: | ValueToken | Token | builtins.object | | Data and other attributes defined here: | | id = ':' | | ---------------------------------------------------------------------- | Methods inherited from Token: | | __init__(self, start_mark, end_mark) | Initialize self. See help(type(self)) for accurate signature. | | __repr__(self) | Return repr(self). | | ---------------------------------------------------------------------- | Data descriptors inherited from Token: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object
pyyaml.YAMLError
Python Library Documentation: class YAMLError in module yaml.error class YAMLError(builtins.Exception) | Method resolution order: | YAMLError | builtins.Exception | builtins.BaseException | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.Exception: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
pyyaml.YAMLObject
Python Library Documentation: class YAMLObject in module yaml class YAMLObject(builtins.object) | An object that can dump itself to a YAML stream | and load itself from a YAML stream. | | Class methods defined here: | | from_yaml(loader, node) | Convert a representation node to a Python object. | | to_yaml(dumper, data) | Convert a Python object to a representation node. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | yaml_dumper = <class 'yaml.dumper.Dumper'> | | yaml_flow_style = None | | yaml_loader = [<class 'yaml.loader.Loader'>, <class 'yaml.loader.FullL... | | yaml_tag = None
pyyaml.YAMLObjectMetaclass
Python Library Documentation: class YAMLObjectMetaclass in module yaml
class YAMLObjectMetaclass(builtins.type)
| YAMLObjectMetaclass(name, bases, kwds)
|
| The metaclass for YAMLObject.
|
| Method resolution order:
| YAMLObjectMetaclass
| builtins.type
| builtins.object
|
| Methods defined here:
|
| __init__(cls, name, bases, kwds)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __annotations__ = {}
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.type:
|
| __call__(self, /, *args, **kwargs)
| Call self as a function.
|
| __delattr__(self, name, /)
| Implement delattr(self, name).
|
| __dir__(self, /)
| Specialized __dir__ implementation for types.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __instancecheck__(self, instance, /)
| Check if an object is an instance.
|
| __or__(self, value, /)
| Return self|value.
|
| __repr__(self, /)
| Return repr(self).
|
| __ror__(self, value, /)
| Return value|self.
|
| __setattr__(self, name, value, /)
| Implement setattr(self, name, value).
|
| __sizeof__(self, /)
| Return memory consumption of the type object.
|
| __subclasscheck__(self, subclass, /)
| Check if a class is a subclass.
|
| __subclasses__(self, /)
| Return a list of immediate subclasses.
|
| mro(self, /)
| Return a type's method resolution order.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.type:
|
| __prepare__(...)
| __prepare__() -> dict
| used to create the namespace for the class statement
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.type:
|
| __new__(*args, **kwargs) class method of builtins.type
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.type:
|
| __abstractmethods__
|
| __dict__
|
| __text_signature__
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from builtins.type:
|
| __base__ = <class 'type'>
| type(object) -> the object's type
| type(name, bases, dict, **kwds) -> a new type
|
|
| __bases__ = (<class 'type'>,)
|
| __basicsize__ = 920
|
| __dictoffset__ = 264
|
| __flags__ = 2156420608
|
| __itemsize__ = 40
|
| __mro__ = (<class 'yaml.YAMLObjectMetaclass'>, <class 'type'>, <class ...
|
| __type_params__ = ()
|
| __weakrefoffset__ = 368
pyyaml.add_constructor
Python Library Documentation: function add_constructor in module 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.
pyyaml.add_implicit_resolver
Python Library Documentation: function add_implicit_resolver in module yaml
add_implicit_resolver(tag, regexp, first=None, Loader=None, 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.
pyyaml.add_multi_constructor
Python Library Documentation: function add_multi_constructor in module 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.
pyyaml.add_multi_representer
Python Library Documentation: function add_multi_representer in module yaml
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.
pyyaml.add_path_resolver
Python Library Documentation: function add_path_resolver in module yaml
add_path_resolver(tag, path, kind=None, Loader=None, 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.
pyyaml.add_representer
Python Library Documentation: function add_representer in module yaml
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.
pyyaml.compose
Python Library Documentation: function compose in module yaml
compose(stream, Loader=<class 'yaml.loader.Loader'>)
Parse the first YAML document in a stream
and produce the corresponding representation tree.
pyyaml.compose_all
Python Library Documentation: function compose_all in module yaml
compose_all(stream, Loader=<class 'yaml.loader.Loader'>)
Parse all YAML documents in a stream
and produce corresponding representation trees.
pyyaml.composer
Python Library Documentation: module yaml.composer in yaml
NAME
yaml.composer
CLASSES
builtins.object
Composer
yaml.error.MarkedYAMLError(yaml.error.YAMLError)
ComposerError
class Composer(builtins.object)
| Methods defined here:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| check_node(self)
|
| compose_document(self)
|
| compose_mapping_node(self, anchor)
|
| compose_node(self, parent, index)
|
| compose_scalar_node(self, anchor)
|
| compose_sequence_node(self, anchor)
|
| get_node(self)
|
| get_single_node(self)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class ComposerError(yaml.error.MarkedYAMLError)
| ComposerError(context=None, context_mark=None, problem=None, problem_mark=None, note=None)
|
| Method resolution order:
| ComposerError
| yaml.error.MarkedYAMLError
| yaml.error.YAMLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from yaml.error.MarkedYAMLError:
|
| __init__(self, context=None, context_mark=None, problem=None, problem_mark=None, note=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self)
| Return str(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.error.YAMLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
DATA
__all__ = ['Composer', 'ComposerError']
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\composer.py
pyyaml.constructor
Python Library Documentation: module yaml.constructor in yaml
NAME
yaml.constructor
CLASSES
builtins.object
BaseConstructor
SafeConstructor
FullConstructor
UnsafeConstructor
Constructor
yaml.error.MarkedYAMLError(yaml.error.YAMLError)
ConstructorError
class BaseConstructor(builtins.object)
| Methods defined here:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_mapping(self, node, deep=False)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| yaml_constructors = {}
|
| yaml_multi_constructors = {}
class Constructor(UnsafeConstructor)
| # Constructor is same as UnsafeConstructor. Need to leave this in place in case
| # people have extended it directly.
|
| Method resolution order:
| Constructor
| UnsafeConstructor
| FullConstructor
| SafeConstructor
| BaseConstructor
| builtins.object
|
| Methods inherited from UnsafeConstructor:
|
| find_python_module(self, name, mark)
|
| find_python_name(self, name, mark)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False)
|
| set_python_instance_state(self, instance, state)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from UnsafeConstructor:
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/module:': <functi...
|
| ----------------------------------------------------------------------
| Methods inherited from FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from BaseConstructor:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseConstructor:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class ConstructorError(yaml.error.MarkedYAMLError)
| ConstructorError(context=None, context_mark=None, problem=None, problem_mark=None, note=None)
|
| Method resolution order:
| ConstructorError
| yaml.error.MarkedYAMLError
| yaml.error.YAMLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from yaml.error.MarkedYAMLError:
|
| __init__(self, context=None, context_mark=None, problem=None, problem_mark=None, note=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self)
| Return str(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.error.YAMLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class FullConstructor(SafeConstructor)
| Method resolution order:
| FullConstructor
| SafeConstructor
| BaseConstructor
| builtins.object
|
| Methods defined here:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| find_python_module(self, name, mark, unsafe=False)
|
| find_python_name(self, name, mark, unsafe=False)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False, unsafe=False)
|
| set_python_instance_state(self, instance, state, unsafe=False)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/name:': <function...
|
| ----------------------------------------------------------------------
| Methods inherited from SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from BaseConstructor:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseConstructor:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class SafeConstructor(BaseConstructor)
| Method resolution order:
| SafeConstructor
| BaseConstructor
| builtins.object
|
| Methods defined here:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from BaseConstructor:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseConstructor:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from BaseConstructor:
|
| yaml_multi_constructors = {}
class UnsafeConstructor(FullConstructor)
| Method resolution order:
| UnsafeConstructor
| FullConstructor
| SafeConstructor
| BaseConstructor
| builtins.object
|
| Methods defined here:
|
| find_python_module(self, name, mark)
|
| find_python_name(self, name, mark)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False)
|
| set_python_instance_state(self, instance, state)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/module:': <functi...
|
| ----------------------------------------------------------------------
| Methods inherited from FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from BaseConstructor:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseConstructor:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
DATA
__all__ = ['BaseConstructor', 'SafeConstructor', 'FullConstructor', 'U...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\constructor.py
pyyaml.cyaml
Python Library Documentation: module yaml.cyaml in yaml
NAME
yaml.cyaml
CLASSES
yaml._yaml.CEmitter(builtins.object)
CBaseDumper(yaml._yaml.CEmitter, yaml.representer.BaseRepresenter, yaml.resolver.BaseResolver)
CDumper(yaml._yaml.CEmitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
CSafeDumper(yaml._yaml.CEmitter, yaml.representer.SafeRepresenter, yaml.resolver.Resolver)
yaml._yaml.CParser(builtins.object)
CBaseLoader(yaml._yaml.CParser, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
CFullLoader(yaml._yaml.CParser, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
CLoader(yaml._yaml.CParser, yaml.constructor.Constructor, yaml.resolver.Resolver)
CSafeLoader(yaml._yaml.CParser, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
CUnsafeLoader(yaml._yaml.CParser, yaml.constructor.UnsafeConstructor, yaml.resolver.Resolver)
yaml.constructor.BaseConstructor(builtins.object)
CBaseLoader(yaml._yaml.CParser, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
yaml.constructor.Constructor(yaml.constructor.UnsafeConstructor)
CLoader(yaml._yaml.CParser, yaml.constructor.Constructor, yaml.resolver.Resolver)
yaml.constructor.FullConstructor(yaml.constructor.SafeConstructor)
CFullLoader(yaml._yaml.CParser, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
yaml.constructor.SafeConstructor(yaml.constructor.BaseConstructor)
CSafeLoader(yaml._yaml.CParser, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
yaml.constructor.UnsafeConstructor(yaml.constructor.FullConstructor)
CUnsafeLoader(yaml._yaml.CParser, yaml.constructor.UnsafeConstructor, yaml.resolver.Resolver)
yaml.representer.BaseRepresenter(builtins.object)
CBaseDumper(yaml._yaml.CEmitter, yaml.representer.BaseRepresenter, yaml.resolver.BaseResolver)
yaml.representer.Representer(yaml.representer.SafeRepresenter)
CDumper(yaml._yaml.CEmitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
yaml.representer.SafeRepresenter(yaml.representer.BaseRepresenter)
CSafeDumper(yaml._yaml.CEmitter, yaml.representer.SafeRepresenter, yaml.resolver.Resolver)
yaml.resolver.BaseResolver(builtins.object)
CBaseDumper(yaml._yaml.CEmitter, yaml.representer.BaseRepresenter, yaml.resolver.BaseResolver)
CBaseLoader(yaml._yaml.CParser, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
yaml.resolver.Resolver(yaml.resolver.BaseResolver)
CDumper(yaml._yaml.CEmitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
CFullLoader(yaml._yaml.CParser, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
CLoader(yaml._yaml.CParser, yaml.constructor.Constructor, yaml.resolver.Resolver)
CSafeDumper(yaml._yaml.CEmitter, yaml.representer.SafeRepresenter, yaml.resolver.Resolver)
CSafeLoader(yaml._yaml.CParser, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
CUnsafeLoader(yaml._yaml.CParser, yaml.constructor.UnsafeConstructor, yaml.resolver.Resolver)
yaml.serializer.Serializer(builtins.object)
CDumper(yaml._yaml.CEmitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
class CBaseDumper(yaml._yaml.CEmitter, yaml.representer.BaseRepresenter, yaml.resolver.BaseResolver)
| CBaseDumper(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)
|
| Method resolution order:
| CBaseDumper
| yaml._yaml.CEmitter
| yaml.representer.BaseRepresenter
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CEmitter:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| close(self)
|
| dispose(self)
|
| emit(self, event_object)
|
| open(self)
|
| serialize(self, node)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CEmitter:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CEmitter
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CEmitter:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| ignore_aliases(self, data)
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.BaseRepresenter:
|
| yaml_multi_representers = {}
|
| yaml_representers = {}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_implicit_resolvers = {}
|
| yaml_path_resolvers = {}
class CBaseLoader(yaml._yaml.CParser, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
| CBaseLoader(stream)
|
| Method resolution order:
| CBaseLoader
| yaml._yaml.CParser
| yaml.constructor.BaseConstructor
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CParser:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| check_event(self, *choices)
|
| check_node(self)
|
| check_token(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| get_node(self)
|
| get_single_node(self)
|
| get_token(self)
|
| peek_event(self)
|
| peek_token(self)
|
| raw_parse(self)
|
| raw_scan(self)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CParser:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CParser
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CParser:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_mapping(self, node, deep=False)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.BaseConstructor:
|
| yaml_constructors = {}
|
| yaml_multi_constructors = {}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_implicit_resolvers = {}
|
| yaml_path_resolvers = {}
class CDumper(yaml._yaml.CEmitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
| 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)
|
| Method resolution order:
| CDumper
| yaml._yaml.CEmitter
| yaml.serializer.Serializer
| yaml.representer.Representer
| yaml.representer.SafeRepresenter
| yaml.representer.BaseRepresenter
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CEmitter:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| close(self)
|
| dispose(self)
|
| emit(self, event_object)
|
| open(self)
|
| serialize(self, node)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CEmitter:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CEmitter
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CEmitter:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.serializer.Serializer:
|
| anchor_node(self, node)
|
| generate_anchor(self, node)
|
| serialize_node(self, node, parent, index)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.serializer.Serializer:
|
| ANCHOR_TEMPLATE = 'id%03d'
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.Representer:
|
| represent_complex(self, data)
|
| represent_module(self, data)
|
| represent_name(self, data)
|
| represent_object(self, data)
|
| represent_ordered_dict(self, data)
|
| represent_tuple(self, data)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.Representer:
|
| yaml_multi_representers = {<class 'type'>: <function Representer.repre...
|
| yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.rep...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.SafeRepresenter:
|
| ignore_aliases(self, data)
|
| represent_binary(self, data)
|
| represent_bool(self, data)
|
| represent_date(self, data)
|
| represent_datetime(self, data)
|
| represent_dict(self, data)
|
| represent_float(self, data)
|
| represent_int(self, data)
|
| represent_list(self, data)
|
| represent_none(self, data)
|
| represent_set(self, data)
|
| represent_str(self, data)
|
| represent_undefined(self, data)
|
| represent_yaml_object(self, tag, data, cls, flow_style=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.SafeRepresenter:
|
| inf_value = inf
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
class CFullLoader(yaml._yaml.CParser, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
| CFullLoader(stream)
|
| Method resolution order:
| CFullLoader
| yaml._yaml.CParser
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CParser:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| check_event(self, *choices)
|
| check_node(self)
|
| check_token(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| get_node(self)
|
| get_single_node(self)
|
| get_token(self)
|
| peek_event(self)
|
| peek_token(self)
|
| raw_parse(self)
|
| raw_scan(self)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CParser:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CParser
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CParser:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| find_python_module(self, name, mark, unsafe=False)
|
| find_python_name(self, name, mark, unsafe=False)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False, unsafe=False)
|
| set_python_instance_state(self, instance, state, unsafe=False)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/name:': <function...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
class CLoader(yaml._yaml.CParser, yaml.constructor.Constructor, yaml.resolver.Resolver)
| CLoader(stream)
|
| Method resolution order:
| CLoader
| yaml._yaml.CParser
| yaml.constructor.Constructor
| yaml.constructor.UnsafeConstructor
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CParser:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| check_event(self, *choices)
|
| check_node(self)
|
| check_token(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| get_node(self)
|
| get_single_node(self)
|
| get_token(self)
|
| peek_event(self)
|
| peek_token(self)
|
| raw_parse(self)
|
| raw_scan(self)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CParser:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CParser
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CParser:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.UnsafeConstructor:
|
| find_python_module(self, name, mark)
|
| find_python_name(self, name, mark)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False)
|
| set_python_instance_state(self, instance, state)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.UnsafeConstructor:
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/module:': <functi...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
class CSafeDumper(yaml._yaml.CEmitter, yaml.representer.SafeRepresenter, yaml.resolver.Resolver)
| CSafeDumper(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)
|
| Method resolution order:
| CSafeDumper
| yaml._yaml.CEmitter
| yaml.representer.SafeRepresenter
| yaml.representer.BaseRepresenter
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CEmitter:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| close(self)
|
| dispose(self)
|
| emit(self, event_object)
|
| open(self)
|
| serialize(self, node)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CEmitter:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CEmitter
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CEmitter:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.SafeRepresenter:
|
| ignore_aliases(self, data)
|
| represent_binary(self, data)
|
| represent_bool(self, data)
|
| represent_date(self, data)
|
| represent_datetime(self, data)
|
| represent_dict(self, data)
|
| represent_float(self, data)
|
| represent_int(self, data)
|
| represent_list(self, data)
|
| represent_none(self, data)
|
| represent_set(self, data)
|
| represent_str(self, data)
|
| represent_undefined(self, data)
|
| represent_yaml_object(self, tag, data, cls, flow_style=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.SafeRepresenter:
|
| inf_value = inf
|
| yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.rep...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.BaseRepresenter:
|
| yaml_multi_representers = {}
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
class CSafeLoader(yaml._yaml.CParser, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
| CSafeLoader(stream)
|
| Method resolution order:
| CSafeLoader
| yaml._yaml.CParser
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CParser:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| check_event(self, *choices)
|
| check_node(self)
|
| check_token(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| get_node(self)
|
| get_single_node(self)
|
| get_token(self)
|
| peek_event(self)
|
| peek_token(self)
|
| raw_parse(self)
|
| raw_scan(self)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CParser:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CParser
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CParser:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.BaseConstructor:
|
| yaml_multi_constructors = {}
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
class CUnsafeLoader(yaml._yaml.CParser, yaml.constructor.UnsafeConstructor, yaml.resolver.Resolver)
| CUnsafeLoader(stream)
|
| Method resolution order:
| CUnsafeLoader
| yaml._yaml.CParser
| yaml.constructor.UnsafeConstructor
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from yaml._yaml.CParser:
|
| __reduce__ = __reduce_cython__(...)
|
| __setstate__ = __setstate_cython__(...)
|
| check_event(self, *choices)
|
| check_node(self)
|
| check_token(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| get_node(self)
|
| get_single_node(self)
|
| get_token(self)
|
| peek_event(self)
|
| peek_token(self)
|
| raw_parse(self)
|
| raw_scan(self)
|
| ----------------------------------------------------------------------
| Static methods inherited from yaml._yaml.CParser:
|
| __new__(*args, **kwargs) class method of yaml._yaml.CParser
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml._yaml.CParser:
|
| __pyx_vtable__ = <capsule object NULL>
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.UnsafeConstructor:
|
| find_python_module(self, name, mark)
|
| find_python_name(self, name, mark)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False)
|
| set_python_instance_state(self, instance, state)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.UnsafeConstructor:
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/module:': <functi...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
DATA
__all__ = ['CBaseLoader', 'CSafeLoader', 'CFullLoader', 'CUnsafeLoader...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\cyaml.py
pyyaml.dump
Python Library Documentation: function dump in module 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.
pyyaml.dump_all
Python Library Documentation: function dump_all in module yaml
dump_all(documents, stream=None, Dumper=<class 'yaml.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.
pyyaml.dumper
Python Library Documentation: module yaml.dumper in yaml
NAME
yaml.dumper
CLASSES
yaml.emitter.Emitter(builtins.object)
BaseDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.BaseRepresenter, yaml.resolver.BaseResolver)
Dumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
SafeDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.SafeRepresenter, yaml.resolver.Resolver)
yaml.representer.BaseRepresenter(builtins.object)
BaseDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.BaseRepresenter, yaml.resolver.BaseResolver)
yaml.representer.Representer(yaml.representer.SafeRepresenter)
Dumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
yaml.representer.SafeRepresenter(yaml.representer.BaseRepresenter)
SafeDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.SafeRepresenter, yaml.resolver.Resolver)
yaml.resolver.BaseResolver(builtins.object)
BaseDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.BaseRepresenter, yaml.resolver.BaseResolver)
yaml.resolver.Resolver(yaml.resolver.BaseResolver)
Dumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
SafeDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.SafeRepresenter, yaml.resolver.Resolver)
yaml.serializer.Serializer(builtins.object)
BaseDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.BaseRepresenter, yaml.resolver.BaseResolver)
Dumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
SafeDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.SafeRepresenter, yaml.resolver.Resolver)
class BaseDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.BaseRepresenter, yaml.resolver.BaseResolver)
| BaseDumper(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)
|
| Method resolution order:
| BaseDumper
| yaml.emitter.Emitter
| yaml.serializer.Serializer
| yaml.representer.BaseRepresenter
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.emitter.Emitter:
|
| analyze_scalar(self, scalar)
|
| check_empty_document(self)
|
| check_empty_mapping(self)
|
| check_empty_sequence(self)
|
| check_simple_key(self)
|
| choose_scalar_style(self)
|
| determine_block_hints(self, text)
|
| dispose(self)
|
| emit(self, event)
|
| expect_alias(self)
|
| expect_block_mapping(self)
|
| expect_block_mapping_key(self, first=False)
|
| expect_block_mapping_simple_value(self)
|
| expect_block_mapping_value(self)
|
| expect_block_sequence(self)
|
| expect_block_sequence_item(self, first=False)
|
| expect_document_end(self)
|
| expect_document_root(self)
|
| expect_document_start(self, first=False)
|
| expect_first_block_mapping_key(self)
|
| expect_first_block_sequence_item(self)
|
| expect_first_document_start(self)
|
| expect_first_flow_mapping_key(self)
|
| expect_first_flow_sequence_item(self)
|
| expect_flow_mapping(self)
|
| expect_flow_mapping_key(self)
|
| expect_flow_mapping_simple_value(self)
|
| expect_flow_mapping_value(self)
|
| expect_flow_sequence(self)
|
| expect_flow_sequence_item(self)
|
| expect_node(self, root=False, sequence=False, mapping=False, simple_key=False)
|
| expect_nothing(self)
|
| expect_scalar(self)
|
| expect_stream_start(self)
|
| flush_stream(self)
|
| increase_indent(self, flow=False, indentless=False)
|
| need_events(self, count)
|
| need_more_events(self)
|
| prepare_anchor(self, anchor)
|
| prepare_tag(self, tag)
|
| prepare_tag_handle(self, handle)
|
| prepare_tag_prefix(self, prefix)
|
| prepare_version(self, version)
|
| process_anchor(self, indicator)
|
| process_scalar(self)
|
| process_tag(self)
|
| write_double_quoted(self, text, split=True)
|
| write_folded(self, text)
|
| write_indent(self)
|
| write_indicator(self, indicator, need_whitespace, whitespace=False, indention=False)
|
| write_line_break(self, data=None)
|
| write_literal(self, text)
|
| write_plain(self, text, split=True)
|
| write_single_quoted(self, text, split=True)
|
| write_stream_end(self)
|
| write_stream_start(self)
|
| write_tag_directive(self, handle_text, prefix_text)
|
| write_version_directive(self, version_text)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.emitter.Emitter:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.emitter.Emitter:
|
| DEFAULT_TAG_PREFIXES = {'!': '!', 'tag:yaml.org,2002:': '!!'}
|
| ESCAPE_REPLACEMENTS = {'\x00': '0', '\x07': 'a', '\x08': 'b', '\t': 't...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.serializer.Serializer:
|
| anchor_node(self, node)
|
| close(self)
|
| generate_anchor(self, node)
|
| open(self)
|
| serialize(self, node)
|
| serialize_node(self, node, parent, index)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.serializer.Serializer:
|
| ANCHOR_TEMPLATE = 'id%03d'
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| ignore_aliases(self, data)
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.BaseRepresenter:
|
| yaml_multi_representers = {}
|
| yaml_representers = {}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_implicit_resolvers = {}
|
| yaml_path_resolvers = {}
class Dumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.Representer, yaml.resolver.Resolver)
| Dumper(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)
|
| Method resolution order:
| Dumper
| yaml.emitter.Emitter
| yaml.serializer.Serializer
| yaml.representer.Representer
| yaml.representer.SafeRepresenter
| yaml.representer.BaseRepresenter
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.emitter.Emitter:
|
| analyze_scalar(self, scalar)
|
| check_empty_document(self)
|
| check_empty_mapping(self)
|
| check_empty_sequence(self)
|
| check_simple_key(self)
|
| choose_scalar_style(self)
|
| determine_block_hints(self, text)
|
| dispose(self)
|
| emit(self, event)
|
| expect_alias(self)
|
| expect_block_mapping(self)
|
| expect_block_mapping_key(self, first=False)
|
| expect_block_mapping_simple_value(self)
|
| expect_block_mapping_value(self)
|
| expect_block_sequence(self)
|
| expect_block_sequence_item(self, first=False)
|
| expect_document_end(self)
|
| expect_document_root(self)
|
| expect_document_start(self, first=False)
|
| expect_first_block_mapping_key(self)
|
| expect_first_block_sequence_item(self)
|
| expect_first_document_start(self)
|
| expect_first_flow_mapping_key(self)
|
| expect_first_flow_sequence_item(self)
|
| expect_flow_mapping(self)
|
| expect_flow_mapping_key(self)
|
| expect_flow_mapping_simple_value(self)
|
| expect_flow_mapping_value(self)
|
| expect_flow_sequence(self)
|
| expect_flow_sequence_item(self)
|
| expect_node(self, root=False, sequence=False, mapping=False, simple_key=False)
|
| expect_nothing(self)
|
| expect_scalar(self)
|
| expect_stream_start(self)
|
| flush_stream(self)
|
| increase_indent(self, flow=False, indentless=False)
|
| need_events(self, count)
|
| need_more_events(self)
|
| prepare_anchor(self, anchor)
|
| prepare_tag(self, tag)
|
| prepare_tag_handle(self, handle)
|
| prepare_tag_prefix(self, prefix)
|
| prepare_version(self, version)
|
| process_anchor(self, indicator)
|
| process_scalar(self)
|
| process_tag(self)
|
| write_double_quoted(self, text, split=True)
|
| write_folded(self, text)
|
| write_indent(self)
|
| write_indicator(self, indicator, need_whitespace, whitespace=False, indention=False)
|
| write_line_break(self, data=None)
|
| write_literal(self, text)
|
| write_plain(self, text, split=True)
|
| write_single_quoted(self, text, split=True)
|
| write_stream_end(self)
|
| write_stream_start(self)
|
| write_tag_directive(self, handle_text, prefix_text)
|
| write_version_directive(self, version_text)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.emitter.Emitter:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.emitter.Emitter:
|
| DEFAULT_TAG_PREFIXES = {'!': '!', 'tag:yaml.org,2002:': '!!'}
|
| ESCAPE_REPLACEMENTS = {'\x00': '0', '\x07': 'a', '\x08': 'b', '\t': 't...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.serializer.Serializer:
|
| anchor_node(self, node)
|
| close(self)
|
| generate_anchor(self, node)
|
| open(self)
|
| serialize(self, node)
|
| serialize_node(self, node, parent, index)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.serializer.Serializer:
|
| ANCHOR_TEMPLATE = 'id%03d'
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.Representer:
|
| represent_complex(self, data)
|
| represent_module(self, data)
|
| represent_name(self, data)
|
| represent_object(self, data)
|
| represent_ordered_dict(self, data)
|
| represent_tuple(self, data)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.Representer:
|
| yaml_multi_representers = {<class 'type'>: <function Representer.repre...
|
| yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.rep...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.SafeRepresenter:
|
| ignore_aliases(self, data)
|
| represent_binary(self, data)
|
| represent_bool(self, data)
|
| represent_date(self, data)
|
| represent_datetime(self, data)
|
| represent_dict(self, data)
|
| represent_float(self, data)
|
| represent_int(self, data)
|
| represent_list(self, data)
|
| represent_none(self, data)
|
| represent_set(self, data)
|
| represent_str(self, data)
|
| represent_undefined(self, data)
|
| represent_yaml_object(self, tag, data, cls, flow_style=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.SafeRepresenter:
|
| inf_value = inf
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
class SafeDumper(yaml.emitter.Emitter, yaml.serializer.Serializer, yaml.representer.SafeRepresenter, yaml.resolver.Resolver)
| SafeDumper(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)
|
| Method resolution order:
| SafeDumper
| yaml.emitter.Emitter
| yaml.serializer.Serializer
| yaml.representer.SafeRepresenter
| yaml.representer.BaseRepresenter
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, 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)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.emitter.Emitter:
|
| analyze_scalar(self, scalar)
|
| check_empty_document(self)
|
| check_empty_mapping(self)
|
| check_empty_sequence(self)
|
| check_simple_key(self)
|
| choose_scalar_style(self)
|
| determine_block_hints(self, text)
|
| dispose(self)
|
| emit(self, event)
|
| expect_alias(self)
|
| expect_block_mapping(self)
|
| expect_block_mapping_key(self, first=False)
|
| expect_block_mapping_simple_value(self)
|
| expect_block_mapping_value(self)
|
| expect_block_sequence(self)
|
| expect_block_sequence_item(self, first=False)
|
| expect_document_end(self)
|
| expect_document_root(self)
|
| expect_document_start(self, first=False)
|
| expect_first_block_mapping_key(self)
|
| expect_first_block_sequence_item(self)
|
| expect_first_document_start(self)
|
| expect_first_flow_mapping_key(self)
|
| expect_first_flow_sequence_item(self)
|
| expect_flow_mapping(self)
|
| expect_flow_mapping_key(self)
|
| expect_flow_mapping_simple_value(self)
|
| expect_flow_mapping_value(self)
|
| expect_flow_sequence(self)
|
| expect_flow_sequence_item(self)
|
| expect_node(self, root=False, sequence=False, mapping=False, simple_key=False)
|
| expect_nothing(self)
|
| expect_scalar(self)
|
| expect_stream_start(self)
|
| flush_stream(self)
|
| increase_indent(self, flow=False, indentless=False)
|
| need_events(self, count)
|
| need_more_events(self)
|
| prepare_anchor(self, anchor)
|
| prepare_tag(self, tag)
|
| prepare_tag_handle(self, handle)
|
| prepare_tag_prefix(self, prefix)
|
| prepare_version(self, version)
|
| process_anchor(self, indicator)
|
| process_scalar(self)
|
| process_tag(self)
|
| write_double_quoted(self, text, split=True)
|
| write_folded(self, text)
|
| write_indent(self)
|
| write_indicator(self, indicator, need_whitespace, whitespace=False, indention=False)
|
| write_line_break(self, data=None)
|
| write_literal(self, text)
|
| write_plain(self, text, split=True)
|
| write_single_quoted(self, text, split=True)
|
| write_stream_end(self)
|
| write_stream_start(self)
|
| write_tag_directive(self, handle_text, prefix_text)
|
| write_version_directive(self, version_text)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.emitter.Emitter:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.emitter.Emitter:
|
| DEFAULT_TAG_PREFIXES = {'!': '!', 'tag:yaml.org,2002:': '!!'}
|
| ESCAPE_REPLACEMENTS = {'\x00': '0', '\x07': 'a', '\x08': 'b', '\t': 't...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.serializer.Serializer:
|
| anchor_node(self, node)
|
| close(self)
|
| generate_anchor(self, node)
|
| open(self)
|
| serialize(self, node)
|
| serialize_node(self, node, parent, index)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.serializer.Serializer:
|
| ANCHOR_TEMPLATE = 'id%03d'
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.SafeRepresenter:
|
| ignore_aliases(self, data)
|
| represent_binary(self, data)
|
| represent_bool(self, data)
|
| represent_date(self, data)
|
| represent_datetime(self, data)
|
| represent_dict(self, data)
|
| represent_float(self, data)
|
| represent_int(self, data)
|
| represent_list(self, data)
|
| represent_none(self, data)
|
| represent_set(self, data)
|
| represent_str(self, data)
|
| represent_undefined(self, data)
|
| represent_yaml_object(self, tag, data, cls, flow_style=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.SafeRepresenter:
|
| inf_value = inf
|
| yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.rep...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.representer.BaseRepresenter:
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.representer.BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.representer.BaseRepresenter:
|
| yaml_multi_representers = {}
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
DATA
__all__ = ['BaseDumper', 'SafeDumper', 'Dumper']
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\dumper.py
pyyaml.emit
Python Library Documentation: function emit in module yaml
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.
pyyaml.emitter
Python Library Documentation: module yaml.emitter in yaml
NAME
yaml.emitter
DESCRIPTION
# Emitter expects events obeying the following grammar:
# stream ::= STREAM-START document* STREAM-END
# document ::= DOCUMENT-START node DOCUMENT-END
# node ::= SCALAR | sequence | mapping
# sequence ::= SEQUENCE-START node* SEQUENCE-END
# mapping ::= MAPPING-START (node node)* MAPPING-END
CLASSES
builtins.object
Emitter
yaml.error.YAMLError(builtins.Exception)
EmitterError
class Emitter(builtins.object)
| Emitter(stream, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None)
|
| Methods defined here:
|
| __init__(self, stream, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| analyze_scalar(self, scalar)
|
| check_empty_document(self)
|
| check_empty_mapping(self)
|
| check_empty_sequence(self)
|
| check_simple_key(self)
|
| choose_scalar_style(self)
|
| determine_block_hints(self, text)
|
| dispose(self)
|
| emit(self, event)
|
| expect_alias(self)
|
| expect_block_mapping(self)
|
| expect_block_mapping_key(self, first=False)
|
| expect_block_mapping_simple_value(self)
|
| expect_block_mapping_value(self)
|
| expect_block_sequence(self)
|
| expect_block_sequence_item(self, first=False)
|
| expect_document_end(self)
|
| expect_document_root(self)
|
| expect_document_start(self, first=False)
|
| expect_first_block_mapping_key(self)
|
| expect_first_block_sequence_item(self)
|
| expect_first_document_start(self)
|
| expect_first_flow_mapping_key(self)
|
| expect_first_flow_sequence_item(self)
|
| expect_flow_mapping(self)
|
| expect_flow_mapping_key(self)
|
| expect_flow_mapping_simple_value(self)
|
| expect_flow_mapping_value(self)
|
| expect_flow_sequence(self)
|
| expect_flow_sequence_item(self)
|
| expect_node(self, root=False, sequence=False, mapping=False, simple_key=False)
|
| expect_nothing(self)
|
| expect_scalar(self)
|
| expect_stream_start(self)
|
| flush_stream(self)
|
| increase_indent(self, flow=False, indentless=False)
|
| need_events(self, count)
|
| need_more_events(self)
|
| prepare_anchor(self, anchor)
|
| prepare_tag(self, tag)
|
| prepare_tag_handle(self, handle)
|
| prepare_tag_prefix(self, prefix)
|
| prepare_version(self, version)
|
| process_anchor(self, indicator)
|
| process_scalar(self)
|
| process_tag(self)
|
| write_double_quoted(self, text, split=True)
|
| write_folded(self, text)
|
| write_indent(self)
|
| write_indicator(self, indicator, need_whitespace, whitespace=False, indention=False)
|
| write_line_break(self, data=None)
|
| write_literal(self, text)
|
| write_plain(self, text, split=True)
|
| write_single_quoted(self, text, split=True)
|
| write_stream_end(self)
|
| write_stream_start(self)
|
| write_tag_directive(self, handle_text, prefix_text)
|
| write_version_directive(self, version_text)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| DEFAULT_TAG_PREFIXES = {'!': '!', 'tag:yaml.org,2002:': '!!'}
|
| ESCAPE_REPLACEMENTS = {'\x00': '0', '\x07': 'a', '\x08': 'b', '\t': 't...
class EmitterError(yaml.error.YAMLError)
| Method resolution order:
| EmitterError
| yaml.error.YAMLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from yaml.error.YAMLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
DATA
__all__ = ['Emitter', 'EmitterError']
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\emitter.py
pyyaml.error
Python Library Documentation: module yaml.error in yaml
NAME
yaml.error
CLASSES
builtins.Exception(builtins.BaseException)
YAMLError
MarkedYAMLError
builtins.object
Mark
class Mark(builtins.object)
| Mark(name, index, line, column, buffer, pointer)
|
| Methods defined here:
|
| __init__(self, name, index, line, column, buffer, pointer)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self)
| Return str(self).
|
| get_snippet(self, indent=4, max_length=75)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class MarkedYAMLError(YAMLError)
| MarkedYAMLError(context=None, context_mark=None, problem=None, problem_mark=None, note=None)
|
| Method resolution order:
| MarkedYAMLError
| YAMLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, context=None, context_mark=None, problem=None, problem_mark=None, note=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self)
| Return str(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from YAMLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class YAMLError(builtins.Exception)
| Method resolution order:
| YAMLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
DATA
__all__ = ['Mark', 'YAMLError', 'MarkedYAMLError']
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\error.py
pyyaml.events
Python Library Documentation: module yaml.events in yaml
NAME
yaml.events - # Abstract classes.
CLASSES
builtins.object
Event
CollectionEndEvent
MappingEndEvent
SequenceEndEvent
DocumentEndEvent
DocumentStartEvent
NodeEvent
AliasEvent
CollectionStartEvent
MappingStartEvent
SequenceStartEvent
ScalarEvent
StreamEndEvent
StreamStartEvent
class AliasEvent(NodeEvent)
| AliasEvent(anchor, start_mark=None, end_mark=None)
|
| Method resolution order:
| AliasEvent
| NodeEvent
| Event
| builtins.object
|
| Methods inherited from NodeEvent:
|
| __init__(self, anchor, start_mark=None, end_mark=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Event:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class CollectionEndEvent(Event)
| CollectionEndEvent(start_mark=None, end_mark=None)
|
| Method resolution order:
| CollectionEndEvent
| Event
| builtins.object
|
| Methods inherited from Event:
|
| __init__(self, start_mark=None, end_mark=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class CollectionStartEvent(NodeEvent)
| CollectionStartEvent(anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None)
|
| Method resolution order:
| CollectionStartEvent
| NodeEvent
| Event
| builtins.object
|
| Methods defined here:
|
| __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Event:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class DocumentEndEvent(Event)
| DocumentEndEvent(start_mark=None, end_mark=None, explicit=None)
|
| Method resolution order:
| DocumentEndEvent
| Event
| builtins.object
|
| Methods defined here:
|
| __init__(self, start_mark=None, end_mark=None, explicit=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Event:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class DocumentStartEvent(Event)
| DocumentStartEvent(start_mark=None, end_mark=None, explicit=None, version=None, tags=None)
|
| Method resolution order:
| DocumentStartEvent
| Event
| builtins.object
|
| Methods defined here:
|
| __init__(self, start_mark=None, end_mark=None, explicit=None, version=None, tags=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Event:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class Event(builtins.object)
| Event(start_mark=None, end_mark=None)
|
| Methods defined here:
|
| __init__(self, start_mark=None, end_mark=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class MappingEndEvent(CollectionEndEvent)
| MappingEndEvent(start_mark=None, end_mark=None)
|
| Method resolution order:
| MappingEndEvent
| CollectionEndEvent
| Event
| builtins.object
|
| Methods inherited from Event:
|
| __init__(self, start_mark=None, end_mark=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class MappingStartEvent(CollectionStartEvent)
| MappingStartEvent(anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None)
|
| Method resolution order:
| MappingStartEvent
| CollectionStartEvent
| NodeEvent
| Event
| builtins.object
|
| Methods inherited from CollectionStartEvent:
|
| __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Event:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class NodeEvent(Event)
| NodeEvent(anchor, start_mark=None, end_mark=None)
|
| Method resolution order:
| NodeEvent
| Event
| builtins.object
|
| Methods defined here:
|
| __init__(self, anchor, start_mark=None, end_mark=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Event:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class ScalarEvent(NodeEvent)
| ScalarEvent(anchor, tag, implicit, value, start_mark=None, end_mark=None, style=None)
|
| Method resolution order:
| ScalarEvent
| NodeEvent
| Event
| builtins.object
|
| Methods defined here:
|
| __init__(self, anchor, tag, implicit, value, start_mark=None, end_mark=None, style=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Event:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class SequenceEndEvent(CollectionEndEvent)
| SequenceEndEvent(start_mark=None, end_mark=None)
|
| Method resolution order:
| SequenceEndEvent
| CollectionEndEvent
| Event
| builtins.object
|
| Methods inherited from Event:
|
| __init__(self, start_mark=None, end_mark=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class SequenceStartEvent(CollectionStartEvent)
| SequenceStartEvent(anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None)
|
| Method resolution order:
| SequenceStartEvent
| CollectionStartEvent
| NodeEvent
| Event
| builtins.object
|
| Methods inherited from CollectionStartEvent:
|
| __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Event:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class StreamEndEvent(Event)
| StreamEndEvent(start_mark=None, end_mark=None)
|
| Method resolution order:
| StreamEndEvent
| Event
| builtins.object
|
| Methods inherited from Event:
|
| __init__(self, start_mark=None, end_mark=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class StreamStartEvent(Event)
| StreamStartEvent(start_mark=None, end_mark=None, encoding=None)
|
| Method resolution order:
| StreamStartEvent
| Event
| builtins.object
|
| Methods defined here:
|
| __init__(self, start_mark=None, end_mark=None, encoding=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Event:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Event:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\events.py
pyyaml.full_load
Python Library Documentation: function full_load in module 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.
pyyaml.full_load_all
Python Library Documentation: function full_load_all in module 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.
pyyaml.io
Python Library Documentation: module io
NAME
io
MODULE REFERENCE
https://docs.python.org/3.12/library/io.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
The io module provides the Python interfaces to stream handling. The
builtin open function is defined in this module.
At the top of the I/O hierarchy is the abstract base class IOBase. It
defines the basic interface to a stream. Note, however, that there is no
separation between reading and writing to streams; implementations are
allowed to raise an OSError if they do not support a given operation.
Extending IOBase is RawIOBase which deals simply with the reading and
writing of raw bytes to a stream. FileIO subclasses RawIOBase to provide
an interface to OS files.
BufferedIOBase deals with buffering on a raw byte stream (RawIOBase). Its
subclasses, BufferedWriter, BufferedReader, and BufferedRWPair buffer
streams that are readable, writable, and both respectively.
BufferedRandom provides a buffered interface to random access
streams. BytesIO is a simple stream of in-memory bytes.
Another IOBase subclass, TextIOBase, deals with the encoding and decoding
of streams into text. TextIOWrapper, which extends it, is a buffered text
interface to a buffered raw stream (`BufferedIOBase`). Finally, StringIO
is an in-memory stream for text.
Argument names are not part of the specification, and only the arguments
of open() are intended to be used as keyword arguments.
data:
DEFAULT_BUFFER_SIZE
An int containing the default buffer size used by the module's buffered
I/O classes. open() uses the file's blksize (as obtained by os.stat) if
possible.
CLASSES
_io._BufferedIOBase(_io._IOBase)
_io.BufferedRWPair
_io.BufferedRandom
_io.BufferedReader
_io.BufferedWriter
_io.BytesIO
BufferedIOBase(_io._BufferedIOBase, IOBase)
_io._IOBase(builtins.object)
IOBase
BufferedIOBase(_io._BufferedIOBase, IOBase)
RawIOBase(_io._RawIOBase, IOBase)
TextIOBase(_io._TextIOBase, IOBase)
_io._RawIOBase(_io._IOBase)
_io.FileIO
RawIOBase(_io._RawIOBase, IOBase)
_io._TextIOBase(_io._IOBase)
_io.StringIO
_io.TextIOWrapper
TextIOBase(_io._TextIOBase, IOBase)
builtins.OSError(builtins.Exception)
builtins.BlockingIOError
UnsupportedOperation(builtins.OSError, builtins.ValueError)
builtins.ValueError(builtins.Exception)
UnsupportedOperation(builtins.OSError, builtins.ValueError)
builtins.object
_io.IncrementalNewlineDecoder
class BlockingIOError(OSError)
| I/O operation would block.
|
| Method resolution order:
| BlockingIOError
| OSError
| Exception
| BaseException
| object
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from OSError:
|
| __reduce__(...)
| Helper for pickle.
|
| __str__(self, /)
| Return str(self).
|
| ----------------------------------------------------------------------
| Static methods inherited from OSError:
|
| __new__(*args, **kwargs) class method of builtins.OSError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from OSError:
|
| characters_written
|
| errno
| POSIX exception code
|
| filename
| exception filename
|
| filename2
| second exception filename
|
| strerror
| exception strerror
|
| winerror
| Win32 exception code
|
| ----------------------------------------------------------------------
| Methods inherited from BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class BufferedIOBase(_io._BufferedIOBase, IOBase)
| Base class for buffered IO objects.
|
| The main difference with RawIOBase is that the read() method
| supports omitting the size argument, and does not have a default
| implementation that defers to readinto().
|
| In addition, read(), readinto() and write() may raise
| BlockingIOError if the underlying raw stream is in non-blocking
| mode and not ready; unlike their raw counterparts, they will never
| return None.
|
| A typical implementation should not inherit from a RawIOBase
| implementation, but wrap one.
|
| Method resolution order:
| BufferedIOBase
| _io._BufferedIOBase
| IOBase
| _io._IOBase
| builtins.object
|
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from _io._BufferedIOBase:
|
| detach(self, /)
| Disconnect this buffer from its underlying raw stream and return it.
|
| After the raw stream has been detached, the buffer is in an unusable
| state.
|
| read(self, size=-1, /)
| Read and return up to n bytes.
|
| If the size argument is omitted, None, or negative, read and
| return all data until EOF.
|
| If the size argument is positive, and the underlying raw stream is
| not 'interactive', multiple raw reads may be issued to satisfy
| the byte count (unless EOF is reached first).
| However, for interactive raw streams (as well as sockets and pipes),
| at most one raw read will be issued, and a short result does not
| imply that EOF is imminent.
|
| Return an empty bytes object on EOF.
|
| Return None if the underlying raw stream was open in non-blocking
| mode and no data is available at the moment.
|
| read1(self, size=-1, /)
| Read and return up to size bytes, with at most one read() call to the underlying raw stream.
|
| Return an empty bytes object on EOF.
| A short result does not imply that EOF is imminent.
|
| readinto(self, buffer, /)
|
| readinto1(self, buffer, /)
|
| write(self, b, /)
| Write buffer b to the IO stream.
|
| Return the number of bytes written, which is always
| the length of b in bytes.
|
| Raise BlockingIOError if the buffer is full and the
| underlying raw stream cannot accept more data at the moment.
|
| ----------------------------------------------------------------------
| Methods inherited from _io._IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| close(self, /)
| Flush and close the IO object.
|
| This method has no effect if the file is already closed.
|
| fileno(self, /)
| Return underlying file descriptor if one exists.
|
| Raise OSError if the IO object does not use a file descriptor.
|
| flush(self, /)
| Flush write buffers, if applicable.
|
| This is not implemented for read-only and non-blocking streams.
|
| isatty(self, /)
| Return whether this is an 'interactive' stream.
|
| Return False if it can't be determined.
|
| readable(self, /)
| Return whether object was opened for reading.
|
| If False, read() will raise OSError.
|
| readline(self, size=-1, /)
| Read and return a line from the stream.
|
| If size is specified, at most size bytes will be read.
|
| The line terminator is always b'\n' for binary files; for text
| files, the newlines argument to open can be used to select the line
| terminator(s) recognized.
|
| readlines(self, hint=-1, /)
| Return a list of lines from the stream.
|
| hint can be specified to control the number of lines read: no more
| lines will be read if the total size (in bytes/characters) of all
| lines so far exceeds hint.
|
| seek(self, offset, whence=0, /)
| Change the stream position to the given byte offset.
|
| offset
| The stream position, relative to 'whence'.
| whence
| The relative position to seek from.
|
| The offset is interpreted relative to the position indicated by whence.
| Values for whence are:
|
| * os.SEEK_SET or 0 -- start of stream (the default); offset should be zero or positive
| * os.SEEK_CUR or 1 -- current stream position; offset may be negative
| * os.SEEK_END or 2 -- end of stream; offset is usually negative
|
| Return the new absolute position.
|
| seekable(self, /)
| Return whether object supports random access.
|
| If False, seek(), tell() and truncate() will raise OSError.
| This method may need to do a test seek().
|
| tell(self, /)
| Return current stream position.
|
| truncate(self, size=None, /)
| Truncate file to size bytes.
|
| File pointer is left unchanged. Size defaults to the current IO position
| as reported by tell(). Return the new size.
|
| writable(self, /)
| Return whether object was opened for writing.
|
| If False, write() will raise OSError.
|
| writelines(self, lines, /)
| Write a list of lines to stream.
|
| Line separators are not added, so it is usual for each of the
| lines provided to have a line separator at the end.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _io._IOBase:
|
| __dict__
|
| closed
class BufferedRWPair(_BufferedIOBase)
| BufferedRWPair(reader, writer, buffer_size=8192, /)
|
| A buffered reader and writer object together.
|
| A buffered reader object and buffered writer object put together to
| form a sequential IO object that can read and write. This is typically
| used with a socket or two-way pipe.
|
| reader and writer are RawIOBase objects that are readable and
| writeable respectively. If the buffer_size is omitted it defaults to
| DEFAULT_BUFFER_SIZE.
|
| Method resolution order:
| BufferedRWPair
| _BufferedIOBase
| _IOBase
| builtins.object
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| close(...)
| Flush and close the IO object.
|
| This method has no effect if the file is already closed.
|
| flush(...)
| Flush write buffers, if applicable.
|
| This is not implemented for read-only and non-blocking streams.
|
| isatty(...)
| Return whether this is an 'interactive' stream.
|
| Return False if it can't be determined.
|
| peek(...)
|
| read(...)
| Read and return up to n bytes.
|
| If the size argument is omitted, None, or negative, read and
| return all data until EOF.
|
| If the size argument is positive, and the underlying raw stream is
| not 'interactive', multiple raw reads may be issued to satisfy
| the byte count (unless EOF is reached first).
| However, for interactive raw streams (as well as sockets and pipes),
| at most one raw read will be issued, and a short result does not
| imply that EOF is imminent.
|
| Return an empty bytes object on EOF.
|
| Return None if the underlying raw stream was open in non-blocking
| mode and no data is available at the moment.
|
| read1(...)
| Read and return up to size bytes, with at most one read() call to the underlying raw stream.
|
| Return an empty bytes object on EOF.
| A short result does not imply that EOF is imminent.
|
| readable(...)
| Return whether object was opened for reading.
|
| If False, read() will raise OSError.
|
| readinto(...)
|
| readinto1(...)
|
| writable(...)
| Return whether object was opened for writing.
|
| If False, write() will raise OSError.
|
| write(...)
| Write buffer b to the IO stream.
|
| Return the number of bytes written, which is always
| the length of b in bytes.
|
| Raise BlockingIOError if the buffer is full and the
| underlying raw stream cannot accept more data at the moment.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| closed
|
| ----------------------------------------------------------------------
| Methods inherited from _BufferedIOBase:
|
| detach(self, /)
| Disconnect this buffer from its underlying raw stream and return it.
|
| After the raw stream has been detached, the buffer is in an unusable
| state.
|
| ----------------------------------------------------------------------
| Methods inherited from _IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| fileno(self, /)
| Return underlying file descriptor if one exists.
|
| Raise OSError if the IO object does not use a file descriptor.
|
| readline(self, size=-1, /)
| Read and return a line from the stream.
|
| If size is specified, at most size bytes will be read.
|
| The line terminator is always b'\n' for binary files; for text
| files, the newlines argument to open can be used to select the line
| terminator(s) recognized.
|
| readlines(self, hint=-1, /)
| Return a list of lines from the stream.
|
| hint can be specified to control the number of lines read: no more
| lines will be read if the total size (in bytes/characters) of all
| lines so far exceeds hint.
|
| seek(self, offset, whence=0, /)
| Change the stream position to the given byte offset.
|
| offset
| The stream position, relative to 'whence'.
| whence
| The relative position to seek from.
|
| The offset is interpreted relative to the position indicated by whence.
| Values for whence are:
|
| * os.SEEK_SET or 0 -- start of stream (the default); offset should be zero or positive
| * os.SEEK_CUR or 1 -- current stream position; offset may be negative
| * os.SEEK_END or 2 -- end of stream; offset is usually negative
|
| Return the new absolute position.
|
| seekable(self, /)
| Return whether object supports random access.
|
| If False, seek(), tell() and truncate() will raise OSError.
| This method may need to do a test seek().
|
| tell(self, /)
| Return current stream position.
|
| truncate(self, size=None, /)
| Truncate file to size bytes.
|
| File pointer is left unchanged. Size defaults to the current IO position
| as reported by tell(). Return the new size.
|
| writelines(self, lines, /)
| Write a list of lines to stream.
|
| Line separators are not added, so it is usual for each of the
| lines provided to have a line separator at the end.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _IOBase:
|
| __dict__
class BufferedRandom(_BufferedIOBase)
| BufferedRandom(raw, buffer_size=8192)
|
| A buffered interface to random access streams.
|
| The constructor creates a reader and writer for a seekable stream,
| raw, given in the first argument. If the buffer_size is omitted it
| defaults to DEFAULT_BUFFER_SIZE.
|
| Method resolution order:
| BufferedRandom
| _BufferedIOBase
| _IOBase
| builtins.object
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Helper for pickle.
|
| __reduce_ex__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __sizeof__(self, /)
| Size of object in memory, in bytes.
|
| close(self, /)
| Flush and close the IO object.
|
| This method has no effect if the file is already closed.
|
| detach(self, /)
| Disconnect this buffer from its underlying raw stream and return it.
|
| After the raw stream has been detached, the buffer is in an unusable
| state.
|
| fileno(self, /)
| Return underlying file descriptor if one exists.
|
| Raise OSError if the IO object does not use a file descriptor.
|
| flush(self, /)
| Flush write buffers, if applicable.
|
| This is not implemented for read-only and non-blocking streams.
|
| isatty(self, /)
| Return whether this is an 'interactive' stream.
|
| Return False if it can't be determined.
|
| peek(self, size=0, /)
|
| read(self, size=-1, /)
| Read and return up to n bytes.
|
| If the size argument is omitted, None, or negative, read and
| return all data until EOF.
|
| If the size argument is positive, and the underlying raw stream is
| not 'interactive', multiple raw reads may be issued to satisfy
| the byte count (unless EOF is reached first).
| However, for interactive raw streams (as well as sockets and pipes),
| at most one raw read will be issued, and a short result does not
| imply that EOF is imminent.
|
| Return an empty bytes object on EOF.
|
| Return None if the underlying raw stream was open in non-blocking
| mode and no data is available at the moment.
|
| read1(self, size=-1, /)
| Read and return up to size bytes, with at most one read() call to the underlying raw stream.
|
| Return an empty bytes object on EOF.
| A short result does not imply that EOF is imminent.
|
| readable(self, /)
| Return whether object was opened for reading.
|
| If False, read() will raise OSError.
|
| readinto(self, buffer, /)
|
| readinto1(self, buffer, /)
|
| readline(self, size=-1, /)
| Read and return a line from the stream.
|
| If size is specified, at most size bytes will be read.
|
| The line terminator is always b'\n' for binary files; for text
| files, the newlines argument to open can be used to select the line
| terminator(s) recognized.
|
| seek(self, target, whence=0, /)
| Change the stream position to the given byte offset.
|
| offset
| The stream position, relative to 'whence'.
| whence
| The relative position to seek from.
|
| The offset is interpreted relative to the position indicated by whence.
| Values for whence are:
|
| * os.SEEK_SET or 0 -- start of stream (the default); offset should be zero or positive
| * os.SEEK_CUR or 1 -- current stream position; offset may be negative
| * os.SEEK_END or 2 -- end of stream; offset is usually negative
|
| Return the new absolute position.
|
| seekable(self, /)
| Return whether object supports random access.
|
| If False, seek(), tell() and truncate() will raise OSError.
| This method may need to do a test seek().
|
| tell(self, /)
| Return current stream position.
|
| truncate(self, pos=None, /)
| Truncate file to size bytes.
|
| File pointer is left unchanged. Size defaults to the current IO position
| as reported by tell(). Return the new size.
|
| writable(self, /)
| Return whether object was opened for writing.
|
| If False, write() will raise OSError.
|
| write(self, buffer, /)
| Write buffer b to the IO stream.
|
| Return the number of bytes written, which is always
| the length of b in bytes.
|
| Raise BlockingIOError if the buffer is full and the
| underlying raw stream cannot accept more data at the moment.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| closed
|
| mode
|
| name
|
| raw
|
| ----------------------------------------------------------------------
| Methods inherited from _IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| readlines(self, hint=-1, /)
| Return a list of lines from the stream.
|
| hint can be specified to control the number of lines read: no more
| lines will be read if the total size (in bytes/characters) of all
| lines so far exceeds hint.
|
| writelines(self, lines, /)
| Write a list of lines to stream.
|
| Line separators are not added, so it is usual for each of the
| lines provided to have a line separator at the end.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _IOBase:
|
| __dict__
class BufferedReader(_BufferedIOBase)
| BufferedReader(raw, buffer_size=8192)
|
| Create a new buffered reader using the given readable raw IO object.
|
| Method resolution order:
| BufferedReader
| _BufferedIOBase
| _IOBase
| builtins.object
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Helper for pickle.
|
| __reduce_ex__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __sizeof__(self, /)
| Size of object in memory, in bytes.
|
| close(self, /)
| Flush and close the IO object.
|
| This method has no effect if the file is already closed.
|
| detach(self, /)
| Disconnect this buffer from its underlying raw stream and return it.
|
| After the raw stream has been detached, the buffer is in an unusable
| state.
|
| fileno(self, /)
| Return underlying file descriptor if one exists.
|
| Raise OSError if the IO object does not use a file descriptor.
|
| flush(self, /)
| Flush write buffers, if applicable.
|
| This is not implemented for read-only and non-blocking streams.
|
| isatty(self, /)
| Return whether this is an 'interactive' stream.
|
| Return False if it can't be determined.
|
| peek(self, size=0, /)
|
| read(self, size=-1, /)
| Read and return up to n bytes.
|
| If the size argument is omitted, None, or negative, read and
| return all data until EOF.
|
| If the size argument is positive, and the underlying raw stream is
| not 'interactive', multiple raw reads may be issued to satisfy
| the byte count (unless EOF is reached first).
| However, for interactive raw streams (as well as sockets and pipes),
| at most one raw read will be issued, and a short result does not
| imply that EOF is imminent.
|
| Return an empty bytes object on EOF.
|
| Return None if the underlying raw stream was open in non-blocking
| mode and no data is available at the moment.
|
| read1(self, size=-1, /)
| Read and return up to size bytes, with at most one read() call to the underlying raw stream.
|
| Return an empty bytes object on EOF.
| A short result does not imply that EOF is imminent.
|
| readable(self, /)
| Return whether object was opened for reading.
|
| If False, read() will raise OSError.
|
| readinto(self, buffer, /)
|
| readinto1(self, buffer, /)
|
| readline(self, size=-1, /)
| Read and return a line from the stream.
|
| If size is specified, at most size bytes will be read.
|
| The line terminator is always b'\n' for binary files; for text
| files, the newlines argument to open can be used to select the line
| terminator(s) recognized.
|
| seek(self, target, whence=0, /)
| Change the stream position to the given byte offset.
|
| offset
| The stream position, relative to 'whence'.
| whence
| The relative position to seek from.
|
| The offset is interpreted relative to the position indicated by whence.
| Values for whence are:
|
| * os.SEEK_SET or 0 -- start of stream (the default); offset should be zero or positive
| * os.SEEK_CUR or 1 -- current stream position; offset may be negative
| * os.SEEK_END or 2 -- end of stream; offset is usually negative
|
| Return the new absolute position.
|
| seekable(self, /)
| Return whether object supports random access.
|
| If False, seek(), tell() and truncate() will raise OSError.
| This method may need to do a test seek().
|
| tell(self, /)
| Return current stream position.
|
| truncate(self, pos=None, /)
| Truncate file to size bytes.
|
| File pointer is left unchanged. Size defaults to the current IO position
| as reported by tell(). Return the new size.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| closed
|
| mode
|
| name
|
| raw
|
| ----------------------------------------------------------------------
| Methods inherited from _BufferedIOBase:
|
| write(self, b, /)
| Write buffer b to the IO stream.
|
| Return the number of bytes written, which is always
| the length of b in bytes.
|
| Raise BlockingIOError if the buffer is full and the
| underlying raw stream cannot accept more data at the moment.
|
| ----------------------------------------------------------------------
| Methods inherited from _IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| readlines(self, hint=-1, /)
| Return a list of lines from the stream.
|
| hint can be specified to control the number of lines read: no more
| lines will be read if the total size (in bytes/characters) of all
| lines so far exceeds hint.
|
| writable(self, /)
| Return whether object was opened for writing.
|
| If False, write() will raise OSError.
|
| writelines(self, lines, /)
| Write a list of lines to stream.
|
| Line separators are not added, so it is usual for each of the
| lines provided to have a line separator at the end.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _IOBase:
|
| __dict__
class BufferedWriter(_BufferedIOBase)
| BufferedWriter(raw, buffer_size=8192)
|
| A buffer for a writeable sequential RawIO object.
|
| The constructor creates a BufferedWriter for the given writeable raw
| stream. If the buffer_size is not given, it defaults to
| DEFAULT_BUFFER_SIZE.
|
| Method resolution order:
| BufferedWriter
| _BufferedIOBase
| _IOBase
| builtins.object
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __reduce_ex__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __sizeof__(self, /)
| Size of object in memory, in bytes.
|
| close(self, /)
| Flush and close the IO object.
|
| This method has no effect if the file is already closed.
|
| detach(self, /)
| Disconnect this buffer from its underlying raw stream and return it.
|
| After the raw stream has been detached, the buffer is in an unusable
| state.
|
| fileno(self, /)
| Return underlying file descriptor if one exists.
|
| Raise OSError if the IO object does not use a file descriptor.
|
| flush(self, /)
| Flush write buffers, if applicable.
|
| This is not implemented for read-only and non-blocking streams.
|
| isatty(self, /)
| Return whether this is an 'interactive' stream.
|
| Return False if it can't be determined.
|
| seek(self, target, whence=0, /)
| Change the stream position to the given byte offset.
|
| offset
| The stream position, relative to 'whence'.
| whence
| The relative position to seek from.
|
| The offset is interpreted relative to the position indicated by whence.
| Values for whence are:
|
| * os.SEEK_SET or 0 -- start of stream (the default); offset should be zero or positive
| * os.SEEK_CUR or 1 -- current stream position; offset may be negative
| * os.SEEK_END or 2 -- end of stream; offset is usually negative
|
| Return the new absolute position.
|
| seekable(self, /)
| Return whether object supports random access.
|
| If False, seek(), tell() and truncate() will raise OSError.
| This method may need to do a test seek().
|
| tell(self, /)
| Return current stream position.
|
| truncate(self, pos=None, /)
| Truncate file to size bytes.
|
| File pointer is left unchanged. Size defaults to the current IO position
| as reported by tell(). Return the new size.
|
| writable(self, /)
| Return whether object was opened for writing.
|
| If False, write() will raise OSError.
|
| write(self, buffer, /)
| Write buffer b to the IO stream.
|
| Return the number of bytes written, which is always
| the length of b in bytes.
|
| Raise BlockingIOError if the buffer is full and the
| underlying raw stream cannot accept more data at the moment.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| closed
|
| mode
|
| name
|
| raw
|
| ----------------------------------------------------------------------
| Methods inherited from _BufferedIOBase:
|
| read(self, size=-1, /)
| Read and return up to n bytes.
|
| If the size argument is omitted, None, or negative, read and
| return all data until EOF.
|
| If the size argument is positive, and the underlying raw stream is
| not 'interactive', multiple raw reads may be issued to satisfy
| the byte count (unless EOF is reached first).
| However, for interactive raw streams (as well as sockets and pipes),
| at most one raw read will be issued, and a short result does not
| imply that EOF is imminent.
|
| Return an empty bytes object on EOF.
|
| Return None if the underlying raw stream was open in non-blocking
| mode and no data is available at the moment.
|
| read1(self, size=-1, /)
| Read and return up to size bytes, with at most one read() call to the underlying raw stream.
|
| Return an empty bytes object on EOF.
| A short result does not imply that EOF is imminent.
|
| readinto(self, buffer, /)
|
| readinto1(self, buffer, /)
|
| ----------------------------------------------------------------------
| Methods inherited from _IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| readable(self, /)
| Return whether object was opened for reading.
|
| If False, read() will raise OSError.
|
| readline(self, size=-1, /)
| Read and return a line from the stream.
|
| If size is specified, at most size bytes will be read.
|
| The line terminator is always b'\n' for binary files; for text
| files, the newlines argument to open can be used to select the line
| terminator(s) recognized.
|
| readlines(self, hint=-1, /)
| Return a list of lines from the stream.
|
| hint can be specified to control the number of lines read: no more
| lines will be read if the total size (in bytes/characters) of all
| lines so far exceeds hint.
|
| writelines(self, lines, /)
| Write a list of lines to stream.
|
| Line separators are not added, so it is usual for each of the
| lines provided to have a line separator at the end.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _IOBase:
|
| __dict__
class BytesIO(_BufferedIOBase)
| BytesIO(initial_bytes=b'')
|
| Buffered I/O implementation using an in-memory bytes buffer.
|
| Method resolution order:
| BytesIO
| _BufferedIOBase
| _IOBase
| builtins.object
|
| Methods defined here:
|
| __getstate__(...)
| Helper for pickle.
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| __setstate__(...)
|
| __sizeof__(...)
| Size of object in memory, in bytes.
|
| close(self, /)
| Disable all I/O operations.
|
| flush(self, /)
| Does nothing.
|
| getbuffer(self, /)
| Get a read-write view over the contents of the BytesIO object.
|
| getvalue(self, /)
| Retrieve the entire contents of the BytesIO object.
|
| isatty(self, /)
| Always returns False.
|
| BytesIO objects are not connected to a TTY-like device.
|
| read(self, size=-1, /)
| Read at most size bytes, returned as a bytes object.
|
| If the size argument is negative, read until EOF is reached.
| Return an empty bytes object at EOF.
|
| read1(self, size=-1, /)
| Read at most size bytes, returned as a bytes object.
|
| If the size argument is negative or omitted, read until EOF is reached.
| Return an empty bytes object at EOF.
|
| readable(self, /)
| Returns True if the IO object can be read.
|
| readinto(self, buffer, /)
| Read bytes into buffer.
|
| Returns number of bytes read (0 for EOF), or None if the object
| is set not to block and has no data to read.
|
| readline(self, size=-1, /)
| Next line from the file, as a bytes object.
|
| Retain newline. A non-negative size argument limits the maximum
| number of bytes to return (an incomplete line may be returned then).
| Return an empty bytes object at EOF.
|
| readlines(self, size=None, /)
| List of bytes objects, each a line from the file.
|
| Call readline() repeatedly and return a list of the lines so read.
| The optional size argument, if given, is an approximate bound on the
| total number of bytes in the lines returned.
|
| seek(self, pos, whence=0, /)
| Change stream position.
|
| Seek to byte offset pos relative to position indicated by whence:
| 0 Start of stream (the default). pos should be >= 0;
| 1 Current position - pos may be negative;
| 2 End of stream - pos usually negative.
| Returns the new absolute position.
|
| seekable(self, /)
| Returns True if the IO object can be seeked.
|
| tell(self, /)
| Current file position, an integer.
|
| truncate(self, size=None, /)
| Truncate the file to at most size bytes.
|
| Size defaults to the current file position, as returned by tell().
| The current file position is unchanged. Returns the new size.
|
| writable(self, /)
| Returns True if the IO object can be written.
|
| write(self, b, /)
| Write bytes to file.
|
| Return the number of bytes written.
|
| writelines(self, lines, /)
| Write lines to the file.
|
| Note that newlines are not added. lines can be any iterable object
| producing bytes-like objects. This is equivalent to calling write() for
| each element.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| closed
| True if the file is closed.
|
| ----------------------------------------------------------------------
| Methods inherited from _BufferedIOBase:
|
| detach(self, /)
| Disconnect this buffer from its underlying raw stream and return it.
|
| After the raw stream has been detached, the buffer is in an unusable
| state.
|
| readinto1(self, buffer, /)
|
| ----------------------------------------------------------------------
| Methods inherited from _IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| fileno(self, /)
| Return underlying file descriptor if one exists.
|
| Raise OSError if the IO object does not use a file descriptor.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _IOBase:
|
| __dict__
class FileIO(_RawIOBase)
| FileIO(file, mode='r', closefd=True, opener=None)
|
| Open a file.
|
| The mode can be 'r' (default), 'w', 'x' or 'a' for reading,
| writing, exclusive creation or appending. The file will be created if it
| doesn't exist when opened for writing or appending; it will be truncated
| when opened for writing. A FileExistsError will be raised if it already
| exists when opened for creating. Opening a file for creating implies
| writing so this mode behaves in a similar way to 'w'.Add a '+' to the mode
| to allow simultaneous reading and writing. A custom opener can be used by
| passing a callable as *opener*. The underlying file descriptor for the file
| object is then obtained by calling opener with (*name*, *flags*).
| *opener* must return an open file descriptor (passing os.open as *opener*
| results in functionality similar to passing None).
|
| Method resolution order:
| FileIO
| _RawIOBase
| _IOBase
| builtins.object
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __reduce_ex__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| close(self, /)
| Close the file.
|
| A closed file cannot be used for further I/O operations. close() may be
| called more than once without error.
|
| fileno(self, /)
| Return the underlying file descriptor (an integer).
|
| isatty(self, /)
| True if the file is connected to a TTY device.
|
| read(self, size=-1, /)
| Read at most size bytes, returned as bytes.
|
| Only makes one system call, so less data may be returned than requested.
| In non-blocking mode, returns None if no data is available.
| Return an empty bytes object at EOF.
|
| readable(self, /)
| True if file was opened in a read mode.
|
| readall(self, /)
| Read all data from the file, returned as bytes.
|
| In non-blocking mode, returns as much as is immediately available,
| or None if no data is available. Return an empty bytes object at EOF.
|
| readinto(self, buffer, /)
| Same as RawIOBase.readinto().
|
| seek(self, pos, whence=0, /)
| Move to new file position and return the file position.
|
| Argument offset is a byte count. Optional argument whence defaults to
| SEEK_SET or 0 (offset from start of file, offset should be >= 0); other values
| are SEEK_CUR or 1 (move relative to current position, positive or negative),
| and SEEK_END or 2 (move relative to end of file, usually negative, although
| many platforms allow seeking beyond the end of a file).
|
| Note that not all file objects are seekable.
|
| seekable(self, /)
| True if file supports random-access.
|
| tell(self, /)
| Current file position.
|
| Can raise OSError for non seekable files.
|
| truncate(self, size=None, /)
| Truncate the file to at most size bytes and return the truncated size.
|
| Size defaults to the current file position, as returned by tell().
| The current file position is changed to the value of size.
|
| writable(self, /)
| True if file was opened in a write mode.
|
| write(self, b, /)
| Write buffer b to file, return number of bytes written.
|
| Only makes one system call, so not all of the data may be written.
| The number of bytes actually written is returned. In non-blocking mode,
| returns None if the write would block.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| closed
| True if the file is closed
|
| closefd
| True if the file descriptor will be closed by close().
|
| mode
| String giving the file mode
|
| ----------------------------------------------------------------------
| Methods inherited from _IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| flush(self, /)
| Flush write buffers, if applicable.
|
| This is not implemented for read-only and non-blocking streams.
|
| readline(self, size=-1, /)
| Read and return a line from the stream.
|
| If size is specified, at most size bytes will be read.
|
| The line terminator is always b'\n' for binary files; for text
| files, the newlines argument to open can be used to select the line
| terminator(s) recognized.
|
| readlines(self, hint=-1, /)
| Return a list of lines from the stream.
|
| hint can be specified to control the number of lines read: no more
| lines will be read if the total size (in bytes/characters) of all
| lines so far exceeds hint.
|
| writelines(self, lines, /)
| Write a list of lines to stream.
|
| Line separators are not added, so it is usual for each of the
| lines provided to have a line separator at the end.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _IOBase:
|
| __dict__
class IOBase(_io._IOBase)
| The abstract base class for all I/O classes.
|
| This class provides dummy implementations for many methods that
| derived classes can override selectively; the default implementations
| represent a file that cannot be read, written or seeked.
|
| Even though IOBase does not declare read, readinto, or write because
| their signatures will vary, implementations and clients should
| consider those methods part of the interface. Also, implementations
| may raise UnsupportedOperation when operations they do not support are
| called.
|
| The basic type used for binary data read from or written to a file is
| bytes. Other bytes-like objects are accepted as method arguments too.
| In some cases (such as readinto), a writable object is required. Text
| I/O classes work with str data.
|
| Note that calling any method (except additional calls to close(),
| which are ignored) on a closed stream should raise a ValueError.
|
| IOBase (and its subclasses) support the iterator protocol, meaning
| that an IOBase object can be iterated over yielding the lines in a
| stream.
|
| IOBase also supports the :keyword:`with` statement. In this example,
| fp is closed after the suite of the with statement is complete:
|
| with open('spam.txt', 'r') as fp:
| fp.write('Spam and eggs!')
|
| Method resolution order:
| IOBase
| _io._IOBase
| builtins.object
|
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from _io._IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| close(self, /)
| Flush and close the IO object.
|
| This method has no effect if the file is already closed.
|
| fileno(self, /)
| Return underlying file descriptor if one exists.
|
| Raise OSError if the IO object does not use a file descriptor.
|
| flush(self, /)
| Flush write buffers, if applicable.
|
| This is not implemented for read-only and non-blocking streams.
|
| isatty(self, /)
| Return whether this is an 'interactive' stream.
|
| Return False if it can't be determined.
|
| readable(self, /)
| Return whether object was opened for reading.
|
| If False, read() will raise OSError.
|
| readline(self, size=-1, /)
| Read and return a line from the stream.
|
| If size is specified, at most size bytes will be read.
|
| The line terminator is always b'\n' for binary files; for text
| files, the newlines argument to open can be used to select the line
| terminator(s) recognized.
|
| readlines(self, hint=-1, /)
| Return a list of lines from the stream.
|
| hint can be specified to control the number of lines read: no more
| lines will be read if the total size (in bytes/characters) of all
| lines so far exceeds hint.
|
| seek(self, offset, whence=0, /)
| Change the stream position to the given byte offset.
|
| offset
| The stream position, relative to 'whence'.
| whence
| The relative position to seek from.
|
| The offset is interpreted relative to the position indicated by whence.
| Values for whence are:
|
| * os.SEEK_SET or 0 -- start of stream (the default); offset should be zero or positive
| * os.SEEK_CUR or 1 -- current stream position; offset may be negative
| * os.SEEK_END or 2 -- end of stream; offset is usually negative
|
| Return the new absolute position.
|
| seekable(self, /)
| Return whether object supports random access.
|
| If False, seek(), tell() and truncate() will raise OSError.
| This method may need to do a test seek().
|
| tell(self, /)
| Return current stream position.
|
| truncate(self, size=None, /)
| Truncate file to size bytes.
|
| File pointer is left unchanged. Size defaults to the current IO position
| as reported by tell(). Return the new size.
|
| writable(self, /)
| Return whether object was opened for writing.
|
| If False, write() will raise OSError.
|
| writelines(self, lines, /)
| Write a list of lines to stream.
|
| Line separators are not added, so it is usual for each of the
| lines provided to have a line separator at the end.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _io._IOBase:
|
| __dict__
|
| closed
class IncrementalNewlineDecoder(builtins.object)
| IncrementalNewlineDecoder(decoder, translate, errors='strict')
|
| Codec used when reading a file in universal newlines mode.
|
| It wraps another incremental decoder, translating \r\n and \r into \n.
| It also records the types of newlines encountered. When used with
| translate=False, it ensures that the newline sequence is returned in
| one piece. When used with decoder=None, it expects unicode strings as
| decode input and translates newlines without first invoking an external
| decoder.
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| decode(self, /, input, final=False)
|
| getstate(self, /)
|
| reset(self, /)
|
| setstate(self, state, /)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| newlines
class RawIOBase(_io._RawIOBase, IOBase)
| Base class for raw binary I/O.
|
| Method resolution order:
| RawIOBase
| _io._RawIOBase
| IOBase
| _io._IOBase
| builtins.object
|
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from _io._RawIOBase:
|
| read(self, size=-1, /)
|
| readall(self, /)
| Read until EOF, using multiple read() call.
|
| readinto(...)
|
| write(...)
|
| ----------------------------------------------------------------------
| Methods inherited from _io._IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| close(self, /)
| Flush and close the IO object.
|
| This method has no effect if the file is already closed.
|
| fileno(self, /)
| Return underlying file descriptor if one exists.
|
| Raise OSError if the IO object does not use a file descriptor.
|
| flush(self, /)
| Flush write buffers, if applicable.
|
| This is not implemented for read-only and non-blocking streams.
|
| isatty(self, /)
| Return whether this is an 'interactive' stream.
|
| Return False if it can't be determined.
|
| readable(self, /)
| Return whether object was opened for reading.
|
| If False, read() will raise OSError.
|
| readline(self, size=-1, /)
| Read and return a line from the stream.
|
| If size is specified, at most size bytes will be read.
|
| The line terminator is always b'\n' for binary files; for text
| files, the newlines argument to open can be used to select the line
| terminator(s) recognized.
|
| readlines(self, hint=-1, /)
| Return a list of lines from the stream.
|
| hint can be specified to control the number of lines read: no more
| lines will be read if the total size (in bytes/characters) of all
| lines so far exceeds hint.
|
| seek(self, offset, whence=0, /)
| Change the stream position to the given byte offset.
|
| offset
| The stream position, relative to 'whence'.
| whence
| The relative position to seek from.
|
| The offset is interpreted relative to the position indicated by whence.
| Values for whence are:
|
| * os.SEEK_SET or 0 -- start of stream (the default); offset should be zero or positive
| * os.SEEK_CUR or 1 -- current stream position; offset may be negative
| * os.SEEK_END or 2 -- end of stream; offset is usually negative
|
| Return the new absolute position.
|
| seekable(self, /)
| Return whether object supports random access.
|
| If False, seek(), tell() and truncate() will raise OSError.
| This method may need to do a test seek().
|
| tell(self, /)
| Return current stream position.
|
| truncate(self, size=None, /)
| Truncate file to size bytes.
|
| File pointer is left unchanged. Size defaults to the current IO position
| as reported by tell(). Return the new size.
|
| writable(self, /)
| Return whether object was opened for writing.
|
| If False, write() will raise OSError.
|
| writelines(self, lines, /)
| Write a list of lines to stream.
|
| Line separators are not added, so it is usual for each of the
| lines provided to have a line separator at the end.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _io._IOBase:
|
| __dict__
|
| closed
class StringIO(_TextIOBase)
| StringIO(initial_value='', newline='\n')
|
| Text I/O implementation using an in-memory buffer.
|
| The initial_value argument sets the value of object. The newline
| argument is like the one of TextIOWrapper's constructor.
|
| Method resolution order:
| StringIO
| _TextIOBase
| _IOBase
| builtins.object
|
| Methods defined here:
|
| __getstate__(...)
| Helper for pickle.
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __next__(self, /)
| Implement next(self).
|
| __setstate__(...)
|
| close(self, /)
| Close the IO object.
|
| Attempting any further operation after the object is closed
| will raise a ValueError.
|
| This method has no effect if the file is already closed.
|
| getvalue(self, /)
| Retrieve the entire contents of the object.
|
| read(self, size=-1, /)
| Read at most size characters, returned as a string.
|
| If the argument is negative or omitted, read until EOF
| is reached. Return an empty string at EOF.
|
| readable(self, /)
| Returns True if the IO object can be read.
|
| readline(self, size=-1, /)
| Read until newline or EOF.
|
| Returns an empty string if EOF is hit immediately.
|
| seek(self, pos, whence=0, /)
| Change stream position.
|
| Seek to character offset pos relative to position indicated by whence:
| 0 Start of stream (the default). pos should be >= 0;
| 1 Current position - pos must be 0;
| 2 End of stream - pos must be 0.
| Returns the new absolute position.
|
| seekable(self, /)
| Returns True if the IO object can be seeked.
|
| tell(self, /)
| Tell the current file position.
|
| truncate(self, pos=None, /)
| Truncate size to pos.
|
| The pos argument defaults to the current file position, as
| returned by tell(). The current file position is unchanged.
| Returns the new absolute position.
|
| writable(self, /)
| Returns True if the IO object can be written.
|
| write(self, s, /)
| Write string to file.
|
| Returns the number of characters written, which is always equal to
| the length of the string.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| closed
|
| line_buffering
|
| newlines
| Line endings translated so far.
|
| Only line endings translated during reading are considered.
|
| Subclasses should override.
|
| ----------------------------------------------------------------------
| Methods inherited from _TextIOBase:
|
| detach(self, /)
| Separate the underlying buffer from the TextIOBase and return it.
|
| After the underlying buffer has been detached, the TextIO is in an unusable state.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _TextIOBase:
|
| encoding
| Encoding of the text stream.
|
| Subclasses should override.
|
| errors
| The error setting of the decoder or encoder.
|
| Subclasses should override.
|
| ----------------------------------------------------------------------
| Methods inherited from _IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| fileno(self, /)
| Return underlying file descriptor if one exists.
|
| Raise OSError if the IO object does not use a file descriptor.
|
| flush(self, /)
| Flush write buffers, if applicable.
|
| This is not implemented for read-only and non-blocking streams.
|
| isatty(self, /)
| Return whether this is an 'interactive' stream.
|
| Return False if it can't be determined.
|
| readlines(self, hint=-1, /)
| Return a list of lines from the stream.
|
| hint can be specified to control the number of lines read: no more
| lines will be read if the total size (in bytes/characters) of all
| lines so far exceeds hint.
|
| writelines(self, lines, /)
| Write a list of lines to stream.
|
| Line separators are not added, so it is usual for each of the
| lines provided to have a line separator at the end.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _IOBase:
|
| __dict__
class TextIOBase(_io._TextIOBase, IOBase)
| Base class for text I/O.
|
| This class provides a character and line based interface to stream
| I/O. There is no readinto method because Python's character strings
| are immutable.
|
| Method resolution order:
| TextIOBase
| _io._TextIOBase
| IOBase
| _io._IOBase
| builtins.object
|
| Data and other attributes defined here:
|
| __abstractmethods__ = frozenset()
|
| ----------------------------------------------------------------------
| Methods inherited from _io._TextIOBase:
|
| detach(self, /)
| Separate the underlying buffer from the TextIOBase and return it.
|
| After the underlying buffer has been detached, the TextIO is in an unusable state.
|
| read(self, size=-1, /)
| Read at most size characters from stream.
|
| Read from underlying buffer until we have size characters or we hit EOF.
| If size is negative or omitted, read until EOF.
|
| readline(self, size=-1, /)
| Read until newline or EOF.
|
| Return an empty string if EOF is hit immediately.
| If size is specified, at most size characters will be read.
|
| write(self, s, /)
| Write string s to stream.
|
| Return the number of characters written
| (which is always equal to the length of the string).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _io._TextIOBase:
|
| encoding
| Encoding of the text stream.
|
| Subclasses should override.
|
| errors
| The error setting of the decoder or encoder.
|
| Subclasses should override.
|
| newlines
| Line endings translated so far.
|
| Only line endings translated during reading are considered.
|
| Subclasses should override.
|
| ----------------------------------------------------------------------
| Methods inherited from _io._IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| __next__(self, /)
| Implement next(self).
|
| close(self, /)
| Flush and close the IO object.
|
| This method has no effect if the file is already closed.
|
| fileno(self, /)
| Return underlying file descriptor if one exists.
|
| Raise OSError if the IO object does not use a file descriptor.
|
| flush(self, /)
| Flush write buffers, if applicable.
|
| This is not implemented for read-only and non-blocking streams.
|
| isatty(self, /)
| Return whether this is an 'interactive' stream.
|
| Return False if it can't be determined.
|
| readable(self, /)
| Return whether object was opened for reading.
|
| If False, read() will raise OSError.
|
| readlines(self, hint=-1, /)
| Return a list of lines from the stream.
|
| hint can be specified to control the number of lines read: no more
| lines will be read if the total size (in bytes/characters) of all
| lines so far exceeds hint.
|
| seek(self, offset, whence=0, /)
| Change the stream position to the given byte offset.
|
| offset
| The stream position, relative to 'whence'.
| whence
| The relative position to seek from.
|
| The offset is interpreted relative to the position indicated by whence.
| Values for whence are:
|
| * os.SEEK_SET or 0 -- start of stream (the default); offset should be zero or positive
| * os.SEEK_CUR or 1 -- current stream position; offset may be negative
| * os.SEEK_END or 2 -- end of stream; offset is usually negative
|
| Return the new absolute position.
|
| seekable(self, /)
| Return whether object supports random access.
|
| If False, seek(), tell() and truncate() will raise OSError.
| This method may need to do a test seek().
|
| tell(self, /)
| Return current stream position.
|
| truncate(self, size=None, /)
| Truncate file to size bytes.
|
| File pointer is left unchanged. Size defaults to the current IO position
| as reported by tell(). Return the new size.
|
| writable(self, /)
| Return whether object was opened for writing.
|
| If False, write() will raise OSError.
|
| writelines(self, lines, /)
| Write a list of lines to stream.
|
| Line separators are not added, so it is usual for each of the
| lines provided to have a line separator at the end.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _io._IOBase:
|
| __dict__
|
| closed
class TextIOWrapper(_TextIOBase)
| TextIOWrapper(buffer, encoding=None, errors=None, newline=None, line_buffering=False, write_through=False)
|
| Character and line based layer over a BufferedIOBase object, buffer.
|
| encoding gives the name of the encoding that the stream will be
| decoded or encoded with. It defaults to locale.getencoding().
|
| errors determines the strictness of encoding and decoding (see
| help(codecs.Codec) or the documentation for codecs.register) and
| defaults to "strict".
|
| newline controls how line endings are handled. It can be None, '',
| '\n', '\r', and '\r\n'. It works as follows:
|
| * On input, if newline is None, universal newlines mode is
| enabled. Lines in the input can end in '\n', '\r', or '\r\n', and
| these are translated into '\n' before being returned to the
| caller. If it is '', universal newline mode is enabled, but line
| endings are returned to the caller untranslated. If it has any of
| the other legal values, input lines are only terminated by the given
| string, and the line ending is returned to the caller untranslated.
|
| * On output, if newline is None, any '\n' characters written are
| translated to the system default line separator, os.linesep. If
| newline is '' or '\n', no translation takes place. If newline is any
| of the other legal values, any '\n' characters written are translated
| to the given string.
|
| If line_buffering is True, a call to flush is implied when a call to
| write contains a newline character.
|
| Method resolution order:
| TextIOWrapper
| _TextIOBase
| _IOBase
| builtins.object
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __next__(self, /)
| Implement next(self).
|
| __reduce__(...)
| Helper for pickle.
|
| __reduce_ex__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| close(self, /)
| Flush and close the IO object.
|
| This method has no effect if the file is already closed.
|
| detach(self, /)
| Separate the underlying buffer from the TextIOBase and return it.
|
| After the underlying buffer has been detached, the TextIO is in an unusable state.
|
| fileno(self, /)
| Return underlying file descriptor if one exists.
|
| Raise OSError if the IO object does not use a file descriptor.
|
| flush(self, /)
| Flush write buffers, if applicable.
|
| This is not implemented for read-only and non-blocking streams.
|
| isatty(self, /)
| Return whether this is an 'interactive' stream.
|
| Return False if it can't be determined.
|
| read(self, size=-1, /)
| Read at most size characters from stream.
|
| Read from underlying buffer until we have size characters or we hit EOF.
| If size is negative or omitted, read until EOF.
|
| readable(self, /)
| Return whether object was opened for reading.
|
| If False, read() will raise OSError.
|
| readline(self, size=-1, /)
| Read until newline or EOF.
|
| Return an empty string if EOF is hit immediately.
| If size is specified, at most size characters will be read.
|
| reconfigure(self, /, *, encoding=None, errors=None, newline=None, line_buffering=None, write_through=None)
| Reconfigure the text stream with new parameters.
|
| This also does an implicit stream flush.
|
| seek(self, cookie, whence=0, /)
| Set the stream position, and return the new stream position.
|
| cookie
| Zero or an opaque number returned by tell().
| whence
| The relative position to seek from.
|
| Four operations are supported, given by the following argument
| combinations:
|
| - seek(0, SEEK_SET): Rewind to the start of the stream.
| - seek(cookie, SEEK_SET): Restore a previous position;
| 'cookie' must be a number returned by tell().
| - seek(0, SEEK_END): Fast-forward to the end of the stream.
| - seek(0, SEEK_CUR): Leave the current stream position unchanged.
|
| Any other argument combinations are invalid,
| and may raise exceptions.
|
| seekable(self, /)
| Return whether object supports random access.
|
| If False, seek(), tell() and truncate() will raise OSError.
| This method may need to do a test seek().
|
| tell(self, /)
| Return the stream position as an opaque number.
|
| The return value of tell() can be given as input to seek(), to restore a
| previous stream position.
|
| truncate(self, pos=None, /)
| Truncate file to size bytes.
|
| File pointer is left unchanged. Size defaults to the current IO position
| as reported by tell(). Return the new size.
|
| writable(self, /)
| Return whether object was opened for writing.
|
| If False, write() will raise OSError.
|
| write(self, text, /)
| Write string s to stream.
|
| Return the number of characters written
| (which is always equal to the length of the string).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| buffer
|
| closed
|
| encoding
| Encoding of the text stream.
|
| Subclasses should override.
|
| errors
| The error setting of the decoder or encoder.
|
| Subclasses should override.
|
| line_buffering
|
| name
|
| newlines
| Line endings translated so far.
|
| Only line endings translated during reading are considered.
|
| Subclasses should override.
|
| write_through
|
| ----------------------------------------------------------------------
| Methods inherited from _IOBase:
|
| __del__(...)
|
| __enter__(...)
|
| __exit__(...)
|
| __iter__(self, /)
| Implement iter(self).
|
| readlines(self, hint=-1, /)
| Return a list of lines from the stream.
|
| hint can be specified to control the number of lines read: no more
| lines will be read if the total size (in bytes/characters) of all
| lines so far exceeds hint.
|
| writelines(self, lines, /)
| Write a list of lines to stream.
|
| Line separators are not added, so it is usual for each of the
| lines provided to have a line separator at the end.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from _IOBase:
|
| __dict__
class UnsupportedOperation(builtins.OSError, builtins.ValueError)
| Method resolution order:
| UnsupportedOperation
| builtins.OSError
| builtins.ValueError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.OSError:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __str__(self, /)
| Return str(self).
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.OSError:
|
| __new__(*args, **kwargs) class method of builtins.OSError
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.OSError:
|
| characters_written
|
| errno
| POSIX exception code
|
| filename
| exception filename
|
| filename2
| second exception filename
|
| strerror
| exception strerror
|
| winerror
| Win32 exception code
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
FUNCTIONS
open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)
Open file and return a stream. Raise OSError upon failure.
file is either a text or byte string giving the name (and the path
if the file isn't in the current working directory) of the file to
be opened or an integer file descriptor of the file to be
wrapped. (If a file descriptor is given, it is closed when the
returned I/O object is closed, unless closefd is set to False.)
mode is an optional string that specifies the mode in which the file
is opened. It defaults to 'r' which means open for reading in text
mode. Other common values are 'w' for writing (truncating the file if
it already exists), 'x' for creating and writing to a new file, and
'a' for appending (which on some Unix systems, means that all writes
append to the end of the file regardless of the current seek position).
In text mode, if encoding is not specified the encoding used is platform
dependent: locale.getencoding() is called to get the current locale encoding.
(For reading and writing raw bytes use binary mode and leave encoding
unspecified.) The available modes are:
========= ===============================================================
Character Meaning
--------- ---------------------------------------------------------------
'r' open for reading (default)
'w' open for writing, truncating the file first
'x' create a new file and open it for writing
'a' open for writing, appending to the end of the file if it exists
'b' binary mode
't' text mode (default)
'+' open a disk file for updating (reading and writing)
========= ===============================================================
The default mode is 'rt' (open for reading text). For binary random
access, the mode 'w+b' opens and truncates the file to 0 bytes, while
'r+b' opens the file without truncation. The 'x' mode implies 'w' and
raises an `FileExistsError` if the file already exists.
Python distinguishes between files opened in binary and text modes,
even when the underlying operating system doesn't. Files opened in
binary mode (appending 'b' to the mode argument) return contents as
bytes objects without any decoding. In text mode (the default, or when
't' is appended to the mode argument), the contents of the file are
returned as strings, the bytes having been first decoded using a
platform-dependent encoding or using the specified encoding if given.
buffering is an optional integer used to set the buffering policy.
Pass 0 to switch buffering off (only allowed in binary mode), 1 to select
line buffering (only usable in text mode), and an integer > 1 to indicate
the size of a fixed-size chunk buffer. When no buffering argument is
given, the default buffering policy works as follows:
* Binary files are buffered in fixed-size chunks; the size of the buffer
is chosen using a heuristic trying to determine the underlying device's
"block size" and falling back on `io.DEFAULT_BUFFER_SIZE`.
On many systems, the buffer will typically be 4096 or 8192 bytes long.
* "Interactive" text files (files for which isatty() returns True)
use line buffering. Other text files use the policy described above
for binary files.
encoding is the name of the encoding used to decode or encode the
file. This should only be used in text mode. The default encoding is
platform dependent, but any encoding supported by Python can be
passed. See the codecs module for the list of supported encodings.
errors is an optional string that specifies how encoding errors are to
be handled---this argument should not be used in binary mode. Pass
'strict' to raise a ValueError exception if there is an encoding error
(the default of None has the same effect), or pass 'ignore' to ignore
errors. (Note that ignoring encoding errors can lead to data loss.)
See the documentation for codecs.register or run 'help(codecs.Codec)'
for a list of the permitted encoding error strings.
newline controls how universal newlines works (it only applies to text
mode). It can be None, '', '\n', '\r', and '\r\n'. It works as
follows:
* On input, if newline is None, universal newlines mode is
enabled. Lines in the input can end in '\n', '\r', or '\r\n', and
these are translated into '\n' before being returned to the
caller. If it is '', universal newline mode is enabled, but line
endings are returned to the caller untranslated. If it has any of
the other legal values, input lines are only terminated by the given
string, and the line ending is returned to the caller untranslated.
* On output, if newline is None, any '\n' characters written are
translated to the system default line separator, os.linesep. If
newline is '' or '\n', no translation takes place. If newline is any
of the other legal values, any '\n' characters written are translated
to the given string.
If closefd is False, the underlying file descriptor will be kept open
when the file is closed. This does not work when a file name is given
and must be True in that case.
A custom opener can be used by passing a callable as *opener*. The
underlying file descriptor for the file object is then obtained by
calling *opener* with (*file*, *flags*). *opener* must return an open
file descriptor (passing os.open as *opener* results in functionality
similar to passing None).
open() returns a file object whose type depends on the mode, and
through which the standard file operations such as reading and writing
are performed. When open() is used to open a file in a text mode ('w',
'r', 'wt', 'rt', etc.), it returns a TextIOWrapper. When used to open
a file in a binary mode, the returned class varies: in read binary
mode, it returns a BufferedReader; in write binary and append binary
modes, it returns a BufferedWriter, and in read/write mode, it returns
a BufferedRandom.
It is also possible to use a string or bytearray as a file for both
reading and writing. For strings StringIO can be used like a file
opened in a text mode, and for bytes a BytesIO can be used like a file
opened in a binary mode.
open_code(path)
Opens the provided file with the intent to import the contents.
This may perform extra validation beyond open(), but is otherwise interchangeable
with calling open(path, 'rb').
text_encoding(encoding, stacklevel=2, /)
A helper function to choose the text encoding.
When encoding is not None, this function returns it.
Otherwise, this function returns the default text encoding
(i.e. "locale" or "utf-8" depends on UTF-8 mode).
This function emits an EncodingWarning if encoding is None and
sys.flags.warn_default_encoding is true.
This can be used in APIs with an encoding=None parameter.
However, please consider using encoding="utf-8" for new APIs.
DATA
DEFAULT_BUFFER_SIZE = 8192
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
__all__ = ['BlockingIOError', 'open', 'open_code', 'IOBase', 'RawIOBas...
AUTHOR
Guido van Rossum <guido@python.org>, Mike Verdone <mike.verdone@gmail.com>, Mark Russell <mark.russell@zen.co.uk>, Antoine Pitrou <solipsis@pitrou.net>, Amaury Forgeot d'Arc <amauryfa@gmail.com>, Benjamin Peterson <benjamin@python.org>
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\io.py
pyyaml.load
Python Library Documentation: function load in module yaml
load(stream, Loader)
Parse the first YAML document in a stream
and produce the corresponding Python object.
pyyaml.load_all
Python Library Documentation: function load_all in module yaml
load_all(stream, Loader)
Parse all YAML documents in a stream
and produce corresponding Python objects.
pyyaml.loader
Python Library Documentation: module yaml.loader in yaml
NAME
yaml.loader
CLASSES
yaml.composer.Composer(builtins.object)
BaseLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
FullLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
Loader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
SafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
UnsafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
yaml.constructor.BaseConstructor(builtins.object)
BaseLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
yaml.constructor.Constructor(yaml.constructor.UnsafeConstructor)
Loader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
UnsafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
yaml.constructor.FullConstructor(yaml.constructor.SafeConstructor)
FullLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
yaml.constructor.SafeConstructor(yaml.constructor.BaseConstructor)
SafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
yaml.parser.Parser(builtins.object)
BaseLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
FullLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
Loader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
SafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
UnsafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
yaml.reader.Reader(builtins.object)
BaseLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
FullLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
Loader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
SafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
UnsafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
yaml.resolver.BaseResolver(builtins.object)
BaseLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
yaml.resolver.Resolver(yaml.resolver.BaseResolver)
FullLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
Loader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
SafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
UnsafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
yaml.scanner.Scanner(builtins.object)
BaseLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
FullLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
Loader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
SafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
UnsafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
class BaseLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.BaseConstructor, yaml.resolver.BaseResolver)
| BaseLoader(stream)
|
| Method resolution order:
| BaseLoader
| yaml.reader.Reader
| yaml.scanner.Scanner
| yaml.parser.Parser
| yaml.composer.Composer
| yaml.constructor.BaseConstructor
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize the scanner.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.reader.Reader:
|
| check_printable(self, data)
|
| determine_encoding(self)
|
| forward(self, length=1)
|
| get_mark(self)
|
| peek(self, index=0)
|
| prefix(self, length=1)
|
| update(self, length)
|
| update_raw(self, size=4096)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.reader.Reader:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.reader.Reader:
|
| NON_PRINTABLE = re.compile('[^\t\n\r -~\x85\xa0-\ud7ff\ue000-�𐀀-\U0010...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.scanner.Scanner:
|
| add_indent(self, column)
|
| check_block_entry(self)
|
| check_directive(self)
|
| check_document_end(self)
|
| check_document_start(self)
|
| check_key(self)
|
| check_plain(self)
|
| check_token(self, *choices)
|
| check_value(self)
|
| fetch_alias(self)
|
| fetch_anchor(self)
|
| fetch_block_entry(self)
|
| fetch_block_scalar(self, style)
|
| fetch_directive(self)
|
| fetch_document_end(self)
|
| fetch_document_indicator(self, TokenClass)
|
| fetch_document_start(self)
|
| fetch_double(self)
|
| fetch_flow_collection_end(self, TokenClass)
|
| fetch_flow_collection_start(self, TokenClass)
|
| fetch_flow_entry(self)
|
| fetch_flow_mapping_end(self)
|
| fetch_flow_mapping_start(self)
|
| fetch_flow_scalar(self, style)
|
| fetch_flow_sequence_end(self)
|
| fetch_flow_sequence_start(self)
|
| fetch_folded(self)
|
| fetch_key(self)
|
| fetch_literal(self)
|
| fetch_more_tokens(self)
|
| fetch_plain(self)
|
| fetch_single(self)
|
| fetch_stream_end(self)
|
| fetch_stream_start(self)
|
| fetch_tag(self)
|
| fetch_value(self)
|
| get_token(self)
|
| need_more_tokens(self)
|
| next_possible_simple_key(self)
|
| peek_token(self)
|
| remove_possible_simple_key(self)
|
| save_possible_simple_key(self)
|
| scan_anchor(self, TokenClass)
|
| scan_block_scalar(self, style)
|
| scan_block_scalar_breaks(self, indent)
|
| scan_block_scalar_ignored_line(self, start_mark)
|
| scan_block_scalar_indentation(self)
|
| scan_block_scalar_indicators(self, start_mark)
|
| scan_directive(self)
|
| scan_directive_ignored_line(self, start_mark)
|
| scan_directive_name(self, start_mark)
|
| scan_flow_scalar(self, style)
|
| scan_flow_scalar_breaks(self, double, start_mark)
|
| scan_flow_scalar_non_spaces(self, double, start_mark)
|
| scan_flow_scalar_spaces(self, double, start_mark)
|
| scan_line_break(self)
|
| scan_plain(self)
|
| scan_plain_spaces(self, indent, start_mark)
|
| scan_tag(self)
|
| scan_tag_directive_handle(self, start_mark)
|
| scan_tag_directive_prefix(self, start_mark)
|
| scan_tag_directive_value(self, start_mark)
|
| scan_tag_handle(self, name, start_mark)
|
| scan_tag_uri(self, name, start_mark)
|
| scan_to_next_token(self)
|
| scan_uri_escapes(self, name, start_mark)
|
| scan_yaml_directive_number(self, start_mark)
|
| scan_yaml_directive_value(self, start_mark)
|
| stale_possible_simple_keys(self)
|
| unwind_indent(self, column)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.scanner.Scanner:
|
| ESCAPE_CODES = {'U': 8, 'u': 4, 'x': 2}
|
| ESCAPE_REPLACEMENTS = {'\t': '\t', ' ': ' ', '"': '"', '/': '/', '0': ...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.parser.Parser:
|
| check_event(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| parse_block_mapping_first_key(self)
|
| parse_block_mapping_key(self)
|
| parse_block_mapping_value(self)
|
| parse_block_node(self)
|
| parse_block_node_or_indentless_sequence(self)
|
| parse_block_sequence_entry(self)
|
| parse_block_sequence_first_entry(self)
|
| parse_document_content(self)
|
| parse_document_end(self)
|
| parse_document_start(self)
|
| parse_flow_mapping_empty_value(self)
|
| parse_flow_mapping_first_key(self)
|
| parse_flow_mapping_key(self, first=False)
|
| parse_flow_mapping_value(self)
|
| parse_flow_node(self)
|
| parse_flow_sequence_entry(self, first=False)
|
| parse_flow_sequence_entry_mapping_end(self)
|
| parse_flow_sequence_entry_mapping_key(self)
|
| parse_flow_sequence_entry_mapping_value(self)
|
| parse_flow_sequence_first_entry(self)
|
| parse_implicit_document_start(self)
|
| parse_indentless_sequence_entry(self)
|
| parse_node(self, block=False, indentless_sequence=False)
|
| parse_stream_start(self)
|
| peek_event(self)
|
| process_directives(self)
|
| process_empty_scalar(self, mark)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.parser.Parser:
|
| DEFAULT_TAGS = {'!': '!', '!!': 'tag:yaml.org,2002:'}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.composer.Composer:
|
| check_node(self)
|
| compose_document(self)
|
| compose_mapping_node(self, anchor)
|
| compose_node(self, parent, index)
|
| compose_scalar_node(self, anchor)
|
| compose_sequence_node(self, anchor)
|
| get_node(self)
|
| get_single_node(self)
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_mapping(self, node, deep=False)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.BaseConstructor:
|
| yaml_constructors = {}
|
| yaml_multi_constructors = {}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_implicit_resolvers = {}
|
| yaml_path_resolvers = {}
class FullLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.FullConstructor, yaml.resolver.Resolver)
| FullLoader(stream)
|
| Method resolution order:
| FullLoader
| yaml.reader.Reader
| yaml.scanner.Scanner
| yaml.parser.Parser
| yaml.composer.Composer
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize the scanner.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.reader.Reader:
|
| check_printable(self, data)
|
| determine_encoding(self)
|
| forward(self, length=1)
|
| get_mark(self)
|
| peek(self, index=0)
|
| prefix(self, length=1)
|
| update(self, length)
|
| update_raw(self, size=4096)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.reader.Reader:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.reader.Reader:
|
| NON_PRINTABLE = re.compile('[^\t\n\r -~\x85\xa0-\ud7ff\ue000-�𐀀-\U0010...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.scanner.Scanner:
|
| add_indent(self, column)
|
| check_block_entry(self)
|
| check_directive(self)
|
| check_document_end(self)
|
| check_document_start(self)
|
| check_key(self)
|
| check_plain(self)
|
| check_token(self, *choices)
|
| check_value(self)
|
| fetch_alias(self)
|
| fetch_anchor(self)
|
| fetch_block_entry(self)
|
| fetch_block_scalar(self, style)
|
| fetch_directive(self)
|
| fetch_document_end(self)
|
| fetch_document_indicator(self, TokenClass)
|
| fetch_document_start(self)
|
| fetch_double(self)
|
| fetch_flow_collection_end(self, TokenClass)
|
| fetch_flow_collection_start(self, TokenClass)
|
| fetch_flow_entry(self)
|
| fetch_flow_mapping_end(self)
|
| fetch_flow_mapping_start(self)
|
| fetch_flow_scalar(self, style)
|
| fetch_flow_sequence_end(self)
|
| fetch_flow_sequence_start(self)
|
| fetch_folded(self)
|
| fetch_key(self)
|
| fetch_literal(self)
|
| fetch_more_tokens(self)
|
| fetch_plain(self)
|
| fetch_single(self)
|
| fetch_stream_end(self)
|
| fetch_stream_start(self)
|
| fetch_tag(self)
|
| fetch_value(self)
|
| get_token(self)
|
| need_more_tokens(self)
|
| next_possible_simple_key(self)
|
| peek_token(self)
|
| remove_possible_simple_key(self)
|
| save_possible_simple_key(self)
|
| scan_anchor(self, TokenClass)
|
| scan_block_scalar(self, style)
|
| scan_block_scalar_breaks(self, indent)
|
| scan_block_scalar_ignored_line(self, start_mark)
|
| scan_block_scalar_indentation(self)
|
| scan_block_scalar_indicators(self, start_mark)
|
| scan_directive(self)
|
| scan_directive_ignored_line(self, start_mark)
|
| scan_directive_name(self, start_mark)
|
| scan_flow_scalar(self, style)
|
| scan_flow_scalar_breaks(self, double, start_mark)
|
| scan_flow_scalar_non_spaces(self, double, start_mark)
|
| scan_flow_scalar_spaces(self, double, start_mark)
|
| scan_line_break(self)
|
| scan_plain(self)
|
| scan_plain_spaces(self, indent, start_mark)
|
| scan_tag(self)
|
| scan_tag_directive_handle(self, start_mark)
|
| scan_tag_directive_prefix(self, start_mark)
|
| scan_tag_directive_value(self, start_mark)
|
| scan_tag_handle(self, name, start_mark)
|
| scan_tag_uri(self, name, start_mark)
|
| scan_to_next_token(self)
|
| scan_uri_escapes(self, name, start_mark)
|
| scan_yaml_directive_number(self, start_mark)
|
| scan_yaml_directive_value(self, start_mark)
|
| stale_possible_simple_keys(self)
|
| unwind_indent(self, column)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.scanner.Scanner:
|
| ESCAPE_CODES = {'U': 8, 'u': 4, 'x': 2}
|
| ESCAPE_REPLACEMENTS = {'\t': '\t', ' ': ' ', '"': '"', '/': '/', '0': ...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.parser.Parser:
|
| check_event(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| parse_block_mapping_first_key(self)
|
| parse_block_mapping_key(self)
|
| parse_block_mapping_value(self)
|
| parse_block_node(self)
|
| parse_block_node_or_indentless_sequence(self)
|
| parse_block_sequence_entry(self)
|
| parse_block_sequence_first_entry(self)
|
| parse_document_content(self)
|
| parse_document_end(self)
|
| parse_document_start(self)
|
| parse_flow_mapping_empty_value(self)
|
| parse_flow_mapping_first_key(self)
|
| parse_flow_mapping_key(self, first=False)
|
| parse_flow_mapping_value(self)
|
| parse_flow_node(self)
|
| parse_flow_sequence_entry(self, first=False)
|
| parse_flow_sequence_entry_mapping_end(self)
|
| parse_flow_sequence_entry_mapping_key(self)
|
| parse_flow_sequence_entry_mapping_value(self)
|
| parse_flow_sequence_first_entry(self)
|
| parse_implicit_document_start(self)
|
| parse_indentless_sequence_entry(self)
|
| parse_node(self, block=False, indentless_sequence=False)
|
| parse_stream_start(self)
|
| peek_event(self)
|
| process_directives(self)
|
| process_empty_scalar(self, mark)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.parser.Parser:
|
| DEFAULT_TAGS = {'!': '!', '!!': 'tag:yaml.org,2002:'}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.composer.Composer:
|
| check_node(self)
|
| compose_document(self)
|
| compose_mapping_node(self, anchor)
|
| compose_node(self, parent, index)
|
| compose_scalar_node(self, anchor)
|
| compose_sequence_node(self, anchor)
|
| get_node(self)
|
| get_single_node(self)
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| find_python_module(self, name, mark, unsafe=False)
|
| find_python_name(self, name, mark, unsafe=False)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False, unsafe=False)
|
| set_python_instance_state(self, instance, state, unsafe=False)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/name:': <function...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
class Loader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
| Loader(stream)
|
| Method resolution order:
| Loader
| yaml.reader.Reader
| yaml.scanner.Scanner
| yaml.parser.Parser
| yaml.composer.Composer
| yaml.constructor.Constructor
| yaml.constructor.UnsafeConstructor
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize the scanner.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.reader.Reader:
|
| check_printable(self, data)
|
| determine_encoding(self)
|
| forward(self, length=1)
|
| get_mark(self)
|
| peek(self, index=0)
|
| prefix(self, length=1)
|
| update(self, length)
|
| update_raw(self, size=4096)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.reader.Reader:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.reader.Reader:
|
| NON_PRINTABLE = re.compile('[^\t\n\r -~\x85\xa0-\ud7ff\ue000-�𐀀-\U0010...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.scanner.Scanner:
|
| add_indent(self, column)
|
| check_block_entry(self)
|
| check_directive(self)
|
| check_document_end(self)
|
| check_document_start(self)
|
| check_key(self)
|
| check_plain(self)
|
| check_token(self, *choices)
|
| check_value(self)
|
| fetch_alias(self)
|
| fetch_anchor(self)
|
| fetch_block_entry(self)
|
| fetch_block_scalar(self, style)
|
| fetch_directive(self)
|
| fetch_document_end(self)
|
| fetch_document_indicator(self, TokenClass)
|
| fetch_document_start(self)
|
| fetch_double(self)
|
| fetch_flow_collection_end(self, TokenClass)
|
| fetch_flow_collection_start(self, TokenClass)
|
| fetch_flow_entry(self)
|
| fetch_flow_mapping_end(self)
|
| fetch_flow_mapping_start(self)
|
| fetch_flow_scalar(self, style)
|
| fetch_flow_sequence_end(self)
|
| fetch_flow_sequence_start(self)
|
| fetch_folded(self)
|
| fetch_key(self)
|
| fetch_literal(self)
|
| fetch_more_tokens(self)
|
| fetch_plain(self)
|
| fetch_single(self)
|
| fetch_stream_end(self)
|
| fetch_stream_start(self)
|
| fetch_tag(self)
|
| fetch_value(self)
|
| get_token(self)
|
| need_more_tokens(self)
|
| next_possible_simple_key(self)
|
| peek_token(self)
|
| remove_possible_simple_key(self)
|
| save_possible_simple_key(self)
|
| scan_anchor(self, TokenClass)
|
| scan_block_scalar(self, style)
|
| scan_block_scalar_breaks(self, indent)
|
| scan_block_scalar_ignored_line(self, start_mark)
|
| scan_block_scalar_indentation(self)
|
| scan_block_scalar_indicators(self, start_mark)
|
| scan_directive(self)
|
| scan_directive_ignored_line(self, start_mark)
|
| scan_directive_name(self, start_mark)
|
| scan_flow_scalar(self, style)
|
| scan_flow_scalar_breaks(self, double, start_mark)
|
| scan_flow_scalar_non_spaces(self, double, start_mark)
|
| scan_flow_scalar_spaces(self, double, start_mark)
|
| scan_line_break(self)
|
| scan_plain(self)
|
| scan_plain_spaces(self, indent, start_mark)
|
| scan_tag(self)
|
| scan_tag_directive_handle(self, start_mark)
|
| scan_tag_directive_prefix(self, start_mark)
|
| scan_tag_directive_value(self, start_mark)
|
| scan_tag_handle(self, name, start_mark)
|
| scan_tag_uri(self, name, start_mark)
|
| scan_to_next_token(self)
|
| scan_uri_escapes(self, name, start_mark)
|
| scan_yaml_directive_number(self, start_mark)
|
| scan_yaml_directive_value(self, start_mark)
|
| stale_possible_simple_keys(self)
|
| unwind_indent(self, column)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.scanner.Scanner:
|
| ESCAPE_CODES = {'U': 8, 'u': 4, 'x': 2}
|
| ESCAPE_REPLACEMENTS = {'\t': '\t', ' ': ' ', '"': '"', '/': '/', '0': ...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.parser.Parser:
|
| check_event(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| parse_block_mapping_first_key(self)
|
| parse_block_mapping_key(self)
|
| parse_block_mapping_value(self)
|
| parse_block_node(self)
|
| parse_block_node_or_indentless_sequence(self)
|
| parse_block_sequence_entry(self)
|
| parse_block_sequence_first_entry(self)
|
| parse_document_content(self)
|
| parse_document_end(self)
|
| parse_document_start(self)
|
| parse_flow_mapping_empty_value(self)
|
| parse_flow_mapping_first_key(self)
|
| parse_flow_mapping_key(self, first=False)
|
| parse_flow_mapping_value(self)
|
| parse_flow_node(self)
|
| parse_flow_sequence_entry(self, first=False)
|
| parse_flow_sequence_entry_mapping_end(self)
|
| parse_flow_sequence_entry_mapping_key(self)
|
| parse_flow_sequence_entry_mapping_value(self)
|
| parse_flow_sequence_first_entry(self)
|
| parse_implicit_document_start(self)
|
| parse_indentless_sequence_entry(self)
|
| parse_node(self, block=False, indentless_sequence=False)
|
| parse_stream_start(self)
|
| peek_event(self)
|
| process_directives(self)
|
| process_empty_scalar(self, mark)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.parser.Parser:
|
| DEFAULT_TAGS = {'!': '!', '!!': 'tag:yaml.org,2002:'}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.composer.Composer:
|
| check_node(self)
|
| compose_document(self)
|
| compose_mapping_node(self, anchor)
|
| compose_node(self, parent, index)
|
| compose_scalar_node(self, anchor)
|
| compose_sequence_node(self, anchor)
|
| get_node(self)
|
| get_single_node(self)
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.UnsafeConstructor:
|
| find_python_module(self, name, mark)
|
| find_python_name(self, name, mark)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False)
|
| set_python_instance_state(self, instance, state)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.UnsafeConstructor:
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/module:': <functi...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
class SafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.SafeConstructor, yaml.resolver.Resolver)
| SafeLoader(stream)
|
| Method resolution order:
| SafeLoader
| yaml.reader.Reader
| yaml.scanner.Scanner
| yaml.parser.Parser
| yaml.composer.Composer
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize the scanner.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.reader.Reader:
|
| check_printable(self, data)
|
| determine_encoding(self)
|
| forward(self, length=1)
|
| get_mark(self)
|
| peek(self, index=0)
|
| prefix(self, length=1)
|
| update(self, length)
|
| update_raw(self, size=4096)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.reader.Reader:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.reader.Reader:
|
| NON_PRINTABLE = re.compile('[^\t\n\r -~\x85\xa0-\ud7ff\ue000-�𐀀-\U0010...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.scanner.Scanner:
|
| add_indent(self, column)
|
| check_block_entry(self)
|
| check_directive(self)
|
| check_document_end(self)
|
| check_document_start(self)
|
| check_key(self)
|
| check_plain(self)
|
| check_token(self, *choices)
|
| check_value(self)
|
| fetch_alias(self)
|
| fetch_anchor(self)
|
| fetch_block_entry(self)
|
| fetch_block_scalar(self, style)
|
| fetch_directive(self)
|
| fetch_document_end(self)
|
| fetch_document_indicator(self, TokenClass)
|
| fetch_document_start(self)
|
| fetch_double(self)
|
| fetch_flow_collection_end(self, TokenClass)
|
| fetch_flow_collection_start(self, TokenClass)
|
| fetch_flow_entry(self)
|
| fetch_flow_mapping_end(self)
|
| fetch_flow_mapping_start(self)
|
| fetch_flow_scalar(self, style)
|
| fetch_flow_sequence_end(self)
|
| fetch_flow_sequence_start(self)
|
| fetch_folded(self)
|
| fetch_key(self)
|
| fetch_literal(self)
|
| fetch_more_tokens(self)
|
| fetch_plain(self)
|
| fetch_single(self)
|
| fetch_stream_end(self)
|
| fetch_stream_start(self)
|
| fetch_tag(self)
|
| fetch_value(self)
|
| get_token(self)
|
| need_more_tokens(self)
|
| next_possible_simple_key(self)
|
| peek_token(self)
|
| remove_possible_simple_key(self)
|
| save_possible_simple_key(self)
|
| scan_anchor(self, TokenClass)
|
| scan_block_scalar(self, style)
|
| scan_block_scalar_breaks(self, indent)
|
| scan_block_scalar_ignored_line(self, start_mark)
|
| scan_block_scalar_indentation(self)
|
| scan_block_scalar_indicators(self, start_mark)
|
| scan_directive(self)
|
| scan_directive_ignored_line(self, start_mark)
|
| scan_directive_name(self, start_mark)
|
| scan_flow_scalar(self, style)
|
| scan_flow_scalar_breaks(self, double, start_mark)
|
| scan_flow_scalar_non_spaces(self, double, start_mark)
|
| scan_flow_scalar_spaces(self, double, start_mark)
|
| scan_line_break(self)
|
| scan_plain(self)
|
| scan_plain_spaces(self, indent, start_mark)
|
| scan_tag(self)
|
| scan_tag_directive_handle(self, start_mark)
|
| scan_tag_directive_prefix(self, start_mark)
|
| scan_tag_directive_value(self, start_mark)
|
| scan_tag_handle(self, name, start_mark)
|
| scan_tag_uri(self, name, start_mark)
|
| scan_to_next_token(self)
|
| scan_uri_escapes(self, name, start_mark)
|
| scan_yaml_directive_number(self, start_mark)
|
| scan_yaml_directive_value(self, start_mark)
|
| stale_possible_simple_keys(self)
|
| unwind_indent(self, column)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.scanner.Scanner:
|
| ESCAPE_CODES = {'U': 8, 'u': 4, 'x': 2}
|
| ESCAPE_REPLACEMENTS = {'\t': '\t', ' ': ' ', '"': '"', '/': '/', '0': ...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.parser.Parser:
|
| check_event(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| parse_block_mapping_first_key(self)
|
| parse_block_mapping_key(self)
|
| parse_block_mapping_value(self)
|
| parse_block_node(self)
|
| parse_block_node_or_indentless_sequence(self)
|
| parse_block_sequence_entry(self)
|
| parse_block_sequence_first_entry(self)
|
| parse_document_content(self)
|
| parse_document_end(self)
|
| parse_document_start(self)
|
| parse_flow_mapping_empty_value(self)
|
| parse_flow_mapping_first_key(self)
|
| parse_flow_mapping_key(self, first=False)
|
| parse_flow_mapping_value(self)
|
| parse_flow_node(self)
|
| parse_flow_sequence_entry(self, first=False)
|
| parse_flow_sequence_entry_mapping_end(self)
|
| parse_flow_sequence_entry_mapping_key(self)
|
| parse_flow_sequence_entry_mapping_value(self)
|
| parse_flow_sequence_first_entry(self)
|
| parse_implicit_document_start(self)
|
| parse_indentless_sequence_entry(self)
|
| parse_node(self, block=False, indentless_sequence=False)
|
| parse_stream_start(self)
|
| peek_event(self)
|
| process_directives(self)
|
| process_empty_scalar(self, mark)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.parser.Parser:
|
| DEFAULT_TAGS = {'!': '!', '!!': 'tag:yaml.org,2002:'}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.composer.Composer:
|
| check_node(self)
|
| compose_document(self)
|
| compose_mapping_node(self, anchor)
|
| compose_node(self, parent, index)
|
| compose_scalar_node(self, anchor)
|
| compose_sequence_node(self, anchor)
|
| get_node(self)
|
| get_single_node(self)
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.BaseConstructor:
|
| yaml_multi_constructors = {}
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
class UnsafeLoader(yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, yaml.constructor.Constructor, yaml.resolver.Resolver)
| UnsafeLoader(stream)
|
| # UnsafeLoader is the same as Loader (which is and was always unsafe on
| # untrusted input). Use of either Loader or UnsafeLoader should be rare, since
| # FullLoad should be able to load almost all YAML safely. Loader is left intact
| # to ensure backwards compatibility.
|
| Method resolution order:
| UnsafeLoader
| yaml.reader.Reader
| yaml.scanner.Scanner
| yaml.parser.Parser
| yaml.composer.Composer
| yaml.constructor.Constructor
| yaml.constructor.UnsafeConstructor
| yaml.constructor.FullConstructor
| yaml.constructor.SafeConstructor
| yaml.constructor.BaseConstructor
| yaml.resolver.Resolver
| yaml.resolver.BaseResolver
| builtins.object
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize the scanner.
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.reader.Reader:
|
| check_printable(self, data)
|
| determine_encoding(self)
|
| forward(self, length=1)
|
| get_mark(self)
|
| peek(self, index=0)
|
| prefix(self, length=1)
|
| update(self, length)
|
| update_raw(self, size=4096)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.reader.Reader:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.reader.Reader:
|
| NON_PRINTABLE = re.compile('[^\t\n\r -~\x85\xa0-\ud7ff\ue000-�𐀀-\U0010...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.scanner.Scanner:
|
| add_indent(self, column)
|
| check_block_entry(self)
|
| check_directive(self)
|
| check_document_end(self)
|
| check_document_start(self)
|
| check_key(self)
|
| check_plain(self)
|
| check_token(self, *choices)
|
| check_value(self)
|
| fetch_alias(self)
|
| fetch_anchor(self)
|
| fetch_block_entry(self)
|
| fetch_block_scalar(self, style)
|
| fetch_directive(self)
|
| fetch_document_end(self)
|
| fetch_document_indicator(self, TokenClass)
|
| fetch_document_start(self)
|
| fetch_double(self)
|
| fetch_flow_collection_end(self, TokenClass)
|
| fetch_flow_collection_start(self, TokenClass)
|
| fetch_flow_entry(self)
|
| fetch_flow_mapping_end(self)
|
| fetch_flow_mapping_start(self)
|
| fetch_flow_scalar(self, style)
|
| fetch_flow_sequence_end(self)
|
| fetch_flow_sequence_start(self)
|
| fetch_folded(self)
|
| fetch_key(self)
|
| fetch_literal(self)
|
| fetch_more_tokens(self)
|
| fetch_plain(self)
|
| fetch_single(self)
|
| fetch_stream_end(self)
|
| fetch_stream_start(self)
|
| fetch_tag(self)
|
| fetch_value(self)
|
| get_token(self)
|
| need_more_tokens(self)
|
| next_possible_simple_key(self)
|
| peek_token(self)
|
| remove_possible_simple_key(self)
|
| save_possible_simple_key(self)
|
| scan_anchor(self, TokenClass)
|
| scan_block_scalar(self, style)
|
| scan_block_scalar_breaks(self, indent)
|
| scan_block_scalar_ignored_line(self, start_mark)
|
| scan_block_scalar_indentation(self)
|
| scan_block_scalar_indicators(self, start_mark)
|
| scan_directive(self)
|
| scan_directive_ignored_line(self, start_mark)
|
| scan_directive_name(self, start_mark)
|
| scan_flow_scalar(self, style)
|
| scan_flow_scalar_breaks(self, double, start_mark)
|
| scan_flow_scalar_non_spaces(self, double, start_mark)
|
| scan_flow_scalar_spaces(self, double, start_mark)
|
| scan_line_break(self)
|
| scan_plain(self)
|
| scan_plain_spaces(self, indent, start_mark)
|
| scan_tag(self)
|
| scan_tag_directive_handle(self, start_mark)
|
| scan_tag_directive_prefix(self, start_mark)
|
| scan_tag_directive_value(self, start_mark)
|
| scan_tag_handle(self, name, start_mark)
|
| scan_tag_uri(self, name, start_mark)
|
| scan_to_next_token(self)
|
| scan_uri_escapes(self, name, start_mark)
|
| scan_yaml_directive_number(self, start_mark)
|
| scan_yaml_directive_value(self, start_mark)
|
| stale_possible_simple_keys(self)
|
| unwind_indent(self, column)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.scanner.Scanner:
|
| ESCAPE_CODES = {'U': 8, 'u': 4, 'x': 2}
|
| ESCAPE_REPLACEMENTS = {'\t': '\t', ' ': ' ', '"': '"', '/': '/', '0': ...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.parser.Parser:
|
| check_event(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| parse_block_mapping_first_key(self)
|
| parse_block_mapping_key(self)
|
| parse_block_mapping_value(self)
|
| parse_block_node(self)
|
| parse_block_node_or_indentless_sequence(self)
|
| parse_block_sequence_entry(self)
|
| parse_block_sequence_first_entry(self)
|
| parse_document_content(self)
|
| parse_document_end(self)
|
| parse_document_start(self)
|
| parse_flow_mapping_empty_value(self)
|
| parse_flow_mapping_first_key(self)
|
| parse_flow_mapping_key(self, first=False)
|
| parse_flow_mapping_value(self)
|
| parse_flow_node(self)
|
| parse_flow_sequence_entry(self, first=False)
|
| parse_flow_sequence_entry_mapping_end(self)
|
| parse_flow_sequence_entry_mapping_key(self)
|
| parse_flow_sequence_entry_mapping_value(self)
|
| parse_flow_sequence_first_entry(self)
|
| parse_implicit_document_start(self)
|
| parse_indentless_sequence_entry(self)
|
| parse_node(self, block=False, indentless_sequence=False)
|
| parse_stream_start(self)
|
| peek_event(self)
|
| process_directives(self)
|
| process_empty_scalar(self, mark)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.parser.Parser:
|
| DEFAULT_TAGS = {'!': '!', '!!': 'tag:yaml.org,2002:'}
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.composer.Composer:
|
| check_node(self)
|
| compose_document(self)
|
| compose_mapping_node(self, anchor)
|
| compose_node(self, parent, index)
|
| compose_scalar_node(self, anchor)
|
| compose_sequence_node(self, anchor)
|
| get_node(self)
|
| get_single_node(self)
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.UnsafeConstructor:
|
| find_python_module(self, name, mark)
|
| find_python_name(self, name, mark)
|
| make_python_instance(self, suffix, node, args=None, kwds=None, newobj=False)
|
| set_python_instance_state(self, instance, state)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.UnsafeConstructor:
|
| yaml_multi_constructors = {'tag:yaml.org,2002:python/module:': <functi...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.FullConstructor:
|
| construct_python_bytes(self, node)
|
| construct_python_complex(self, node)
|
| construct_python_long(self, node)
|
| construct_python_module(self, suffix, node)
|
| construct_python_name(self, suffix, node)
|
| construct_python_object(self, suffix, node)
|
| construct_python_object_apply(self, suffix, node, newobj=False)
|
| construct_python_object_new(self, suffix, node)
|
| construct_python_str(self, node)
|
| construct_python_tuple(self, node)
|
| construct_python_unicode(self, node)
|
| get_state_keys_blacklist(self)
| # 'extend' is blacklisted because it is used by
| # construct_python_object_apply to add `listitems` to a newly generate
| # python instance
|
| get_state_keys_blacklist_regexp(self)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.FullConstructor:
|
| yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstruct...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.SafeConstructor:
|
| construct_mapping(self, node, deep=False)
|
| construct_scalar(self, node)
|
| construct_undefined(self, node)
|
| construct_yaml_binary(self, node)
|
| construct_yaml_bool(self, node)
|
| construct_yaml_float(self, node)
|
| construct_yaml_int(self, node)
|
| construct_yaml_map(self, node)
|
| construct_yaml_null(self, node)
|
| construct_yaml_object(self, node, cls)
|
| construct_yaml_omap(self, node)
|
| construct_yaml_pairs(self, node)
|
| construct_yaml_seq(self, node)
|
| construct_yaml_set(self, node)
|
| construct_yaml_str(self, node)
|
| construct_yaml_timestamp(self, node)
|
| flatten_mapping(self, node)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.constructor.SafeConstructor:
|
| bool_values = {'false': False, 'no': False, 'off': False, 'on': True, ...
|
| inf_value = inf
|
| nan_value = nan
|
| timestamp_regexp = re.compile('^(?P<year>[0-9][0-9][0-9][0-9])\n ......
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.constructor.BaseConstructor:
|
| check_data(self)
|
| check_state_key(self, key)
| Block special attributes/methods from being set in a newly created
| object, to prevent user-controlled methods from being called during
| deserialization
|
| construct_document(self, node)
|
| construct_object(self, node, deep=False)
|
| construct_pairs(self, node, deep=False)
|
| construct_sequence(self, node, deep=False)
|
| get_data(self)
|
| get_single_data(self)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.constructor.BaseConstructor:
|
| add_constructor(tag, constructor)
|
| add_multi_constructor(tag_prefix, multi_constructor)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.Resolver:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from yaml.resolver.BaseResolver:
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from yaml.resolver.BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from yaml.resolver.BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
DATA
__all__ = ['BaseLoader', 'FullLoader', 'SafeLoader', 'Loader', 'Unsafe...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\loader.py
pyyaml.nodes
Python Library Documentation: module yaml.nodes in yaml
NAME
yaml.nodes
CLASSES
builtins.object
Node
CollectionNode
MappingNode
SequenceNode
ScalarNode
class CollectionNode(Node)
| CollectionNode(tag, value, start_mark=None, end_mark=None, flow_style=None)
|
| Method resolution order:
| CollectionNode
| Node
| builtins.object
|
| Methods defined here:
|
| __init__(self, tag, value, start_mark=None, end_mark=None, flow_style=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Node:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Node:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class MappingNode(CollectionNode)
| MappingNode(tag, value, start_mark=None, end_mark=None, flow_style=None)
|
| Method resolution order:
| MappingNode
| CollectionNode
| Node
| builtins.object
|
| Data and other attributes defined here:
|
| id = 'mapping'
|
| ----------------------------------------------------------------------
| Methods inherited from CollectionNode:
|
| __init__(self, tag, value, start_mark=None, end_mark=None, flow_style=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Node:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Node:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class Node(builtins.object)
| Node(tag, value, start_mark, end_mark)
|
| Methods defined here:
|
| __init__(self, tag, value, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class ScalarNode(Node)
| ScalarNode(tag, value, start_mark=None, end_mark=None, style=None)
|
| Method resolution order:
| ScalarNode
| Node
| builtins.object
|
| Methods defined here:
|
| __init__(self, tag, value, start_mark=None, end_mark=None, style=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| id = 'scalar'
|
| ----------------------------------------------------------------------
| Methods inherited from Node:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Node:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class SequenceNode(CollectionNode)
| SequenceNode(tag, value, start_mark=None, end_mark=None, flow_style=None)
|
| Method resolution order:
| SequenceNode
| CollectionNode
| Node
| builtins.object
|
| Data and other attributes defined here:
|
| id = 'sequence'
|
| ----------------------------------------------------------------------
| Methods inherited from CollectionNode:
|
| __init__(self, tag, value, start_mark=None, end_mark=None, flow_style=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from Node:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Node:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\nodes.py
pyyaml.parse
Python Library Documentation: function parse in module yaml
parse(stream, Loader=<class 'yaml.loader.Loader'>)
Parse a YAML stream and produce parsing events.
pyyaml.parser
Python Library Documentation: module yaml.parser in yaml
NAME
yaml.parser
DESCRIPTION
# The following YAML grammar is LL(1) and is parsed by a recursive descent
# parser.
#
# stream ::= STREAM-START implicit_document? explicit_document* STREAM-END
# implicit_document ::= block_node DOCUMENT-END*
# explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END*
# block_node_or_indentless_sequence ::=
# ALIAS
# | properties (block_content | indentless_block_sequence)?
# | block_content
# | indentless_block_sequence
# block_node ::= ALIAS
# | properties block_content?
# | block_content
# flow_node ::= ALIAS
# | properties flow_content?
# | flow_content
# properties ::= TAG ANCHOR? | ANCHOR TAG?
# block_content ::= block_collection | flow_collection | SCALAR
# flow_content ::= flow_collection | SCALAR
# block_collection ::= block_sequence | block_mapping
# flow_collection ::= flow_sequence | flow_mapping
# block_sequence ::= BLOCK-SEQUENCE-START (BLOCK-ENTRY block_node?)* BLOCK-END
# indentless_sequence ::= (BLOCK-ENTRY block_node?)+
# block_mapping ::= BLOCK-MAPPING_START
# ((KEY block_node_or_indentless_sequence?)?
# (VALUE block_node_or_indentless_sequence?)?)*
# BLOCK-END
# flow_sequence ::= FLOW-SEQUENCE-START
# (flow_sequence_entry FLOW-ENTRY)*
# flow_sequence_entry?
# FLOW-SEQUENCE-END
# flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)?
# flow_mapping ::= FLOW-MAPPING-START
# (flow_mapping_entry FLOW-ENTRY)*
# flow_mapping_entry?
# FLOW-MAPPING-END
# flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)?
#
# FIRST sets:
#
# stream: { STREAM-START }
# explicit_document: { DIRECTIVE DOCUMENT-START }
# implicit_document: FIRST(block_node)
# block_node: { ALIAS TAG ANCHOR SCALAR BLOCK-SEQUENCE-START BLOCK-MAPPING-START FLOW-SEQUENCE-START FLOW-MAPPING-START }
# flow_node: { ALIAS ANCHOR TAG SCALAR FLOW-SEQUENCE-START FLOW-MAPPING-START }
# block_content: { BLOCK-SEQUENCE-START BLOCK-MAPPING-START FLOW-SEQUENCE-START FLOW-MAPPING-START SCALAR }
# flow_content: { FLOW-SEQUENCE-START FLOW-MAPPING-START SCALAR }
# block_collection: { BLOCK-SEQUENCE-START BLOCK-MAPPING-START }
# flow_collection: { FLOW-SEQUENCE-START FLOW-MAPPING-START }
# block_sequence: { BLOCK-SEQUENCE-START }
# block_mapping: { BLOCK-MAPPING-START }
# block_node_or_indentless_sequence: { ALIAS ANCHOR TAG SCALAR BLOCK-SEQUENCE-START BLOCK-MAPPING-START FLOW-SEQUENCE-START FLOW-MAPPING-START BLOCK-ENTRY }
# indentless_sequence: { ENTRY }
# flow_collection: { FLOW-SEQUENCE-START FLOW-MAPPING-START }
# flow_sequence: { FLOW-SEQUENCE-START }
# flow_mapping: { FLOW-MAPPING-START }
# flow_sequence_entry: { ALIAS ANCHOR TAG SCALAR FLOW-SEQUENCE-START FLOW-MAPPING-START KEY }
# flow_mapping_entry: { ALIAS ANCHOR TAG SCALAR FLOW-SEQUENCE-START FLOW-MAPPING-START KEY }
CLASSES
builtins.object
Parser
yaml.error.MarkedYAMLError(yaml.error.YAMLError)
ParserError
class Parser(builtins.object)
| Methods defined here:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| check_event(self, *choices)
|
| dispose(self)
|
| get_event(self)
|
| parse_block_mapping_first_key(self)
|
| parse_block_mapping_key(self)
|
| parse_block_mapping_value(self)
|
| parse_block_node(self)
|
| parse_block_node_or_indentless_sequence(self)
|
| parse_block_sequence_entry(self)
|
| parse_block_sequence_first_entry(self)
|
| parse_document_content(self)
|
| parse_document_end(self)
|
| parse_document_start(self)
|
| parse_flow_mapping_empty_value(self)
|
| parse_flow_mapping_first_key(self)
|
| parse_flow_mapping_key(self, first=False)
|
| parse_flow_mapping_value(self)
|
| parse_flow_node(self)
|
| parse_flow_sequence_entry(self, first=False)
|
| parse_flow_sequence_entry_mapping_end(self)
|
| parse_flow_sequence_entry_mapping_key(self)
|
| parse_flow_sequence_entry_mapping_value(self)
|
| parse_flow_sequence_first_entry(self)
|
| parse_implicit_document_start(self)
|
| parse_indentless_sequence_entry(self)
|
| parse_node(self, block=False, indentless_sequence=False)
|
| parse_stream_start(self)
|
| peek_event(self)
|
| process_directives(self)
|
| process_empty_scalar(self, mark)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| DEFAULT_TAGS = {'!': '!', '!!': 'tag:yaml.org,2002:'}
class ParserError(yaml.error.MarkedYAMLError)
| ParserError(context=None, context_mark=None, problem=None, problem_mark=None, note=None)
|
| Method resolution order:
| ParserError
| yaml.error.MarkedYAMLError
| yaml.error.YAMLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from yaml.error.MarkedYAMLError:
|
| __init__(self, context=None, context_mark=None, problem=None, problem_mark=None, note=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self)
| Return str(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.error.YAMLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
DATA
__all__ = ['Parser', 'ParserError']
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\parser.py
pyyaml.reader
Python Library Documentation: module yaml.reader in yaml
NAME
yaml.reader
DESCRIPTION
# This module contains abstractions for the input stream. You don't have to
# looks further, there are no pretty code.
#
# We define two classes here.
#
# Mark(source, line, column)
# It's just a record and its only use is producing nice error messages.
# Parser does not use it for any other purposes.
#
# Reader(source, data)
# Reader determines the encoding of `data` and converts it to unicode.
# Reader provides the following methods and attributes:
# reader.peek(length=1) - return the next `length` characters
# reader.forward(length=1) - move the current position to `length` characters.
# reader.index - the number of the current character.
# reader.line, stream.column - the line and the column of the current character.
CLASSES
builtins.object
Reader
yaml.error.YAMLError(builtins.Exception)
ReaderError
class Reader(builtins.object)
| Reader(stream)
|
| Methods defined here:
|
| __init__(self, stream)
| Initialize self. See help(type(self)) for accurate signature.
|
| check_printable(self, data)
|
| determine_encoding(self)
|
| forward(self, length=1)
|
| get_mark(self)
|
| peek(self, index=0)
|
| prefix(self, length=1)
|
| update(self, length)
|
| update_raw(self, size=4096)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| NON_PRINTABLE = re.compile('[^\t\n\r -~\x85\xa0-\ud7ff\ue000-�𐀀-\U0010...
class ReaderError(yaml.error.YAMLError)
| ReaderError(name, position, character, encoding, reason)
|
| Method resolution order:
| ReaderError
| yaml.error.YAMLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods defined here:
|
| __init__(self, name, position, character, encoding, reason)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self)
| Return str(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.error.YAMLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
DATA
__all__ = ['Reader', 'ReaderError']
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\reader.py
pyyaml.representer
Python Library Documentation: module yaml.representer in yaml
NAME
yaml.representer
CLASSES
builtins.object
BaseRepresenter
SafeRepresenter
Representer
yaml.error.YAMLError(builtins.Exception)
RepresenterError
class BaseRepresenter(builtins.object)
| BaseRepresenter(default_style=None, default_flow_style=False, sort_keys=True)
|
| Methods defined here:
|
| __init__(self, default_style=None, default_flow_style=False, sort_keys=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| ignore_aliases(self, data)
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| yaml_multi_representers = {}
|
| yaml_representers = {}
class Representer(SafeRepresenter)
| Representer(default_style=None, default_flow_style=False, sort_keys=True)
|
| Method resolution order:
| Representer
| SafeRepresenter
| BaseRepresenter
| builtins.object
|
| Methods defined here:
|
| represent_complex(self, data)
|
| represent_module(self, data)
|
| represent_name(self, data)
|
| represent_object(self, data)
|
| represent_ordered_dict(self, data)
|
| represent_tuple(self, data)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| yaml_multi_representers = {<class 'type'>: <function Representer.repre...
|
| yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.rep...
|
| ----------------------------------------------------------------------
| Methods inherited from SafeRepresenter:
|
| ignore_aliases(self, data)
|
| represent_binary(self, data)
|
| represent_bool(self, data)
|
| represent_date(self, data)
|
| represent_datetime(self, data)
|
| represent_dict(self, data)
|
| represent_float(self, data)
|
| represent_int(self, data)
|
| represent_list(self, data)
|
| represent_none(self, data)
|
| represent_set(self, data)
|
| represent_str(self, data)
|
| represent_undefined(self, data)
|
| represent_yaml_object(self, tag, data, cls, flow_style=None)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from SafeRepresenter:
|
| inf_value = inf
|
| ----------------------------------------------------------------------
| Methods inherited from BaseRepresenter:
|
| __init__(self, default_style=None, default_flow_style=False, sort_keys=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseRepresenter:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class RepresenterError(yaml.error.YAMLError)
| Method resolution order:
| RepresenterError
| yaml.error.YAMLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from yaml.error.YAMLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class SafeRepresenter(BaseRepresenter)
| SafeRepresenter(default_style=None, default_flow_style=False, sort_keys=True)
|
| Method resolution order:
| SafeRepresenter
| BaseRepresenter
| builtins.object
|
| Methods defined here:
|
| ignore_aliases(self, data)
|
| represent_binary(self, data)
|
| represent_bool(self, data)
|
| represent_date(self, data)
|
| represent_datetime(self, data)
|
| represent_dict(self, data)
|
| represent_float(self, data)
|
| represent_int(self, data)
|
| represent_list(self, data)
|
| represent_none(self, data)
|
| represent_set(self, data)
|
| represent_str(self, data)
|
| represent_undefined(self, data)
|
| represent_yaml_object(self, tag, data, cls, flow_style=None)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| inf_value = inf
|
| yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.rep...
|
| ----------------------------------------------------------------------
| Methods inherited from BaseRepresenter:
|
| __init__(self, default_style=None, default_flow_style=False, sort_keys=True)
| Initialize self. See help(type(self)) for accurate signature.
|
| represent(self, data)
|
| represent_data(self, data)
|
| represent_mapping(self, tag, mapping, flow_style=None)
|
| represent_scalar(self, tag, value, style=None)
|
| represent_sequence(self, tag, sequence, flow_style=None)
|
| ----------------------------------------------------------------------
| Class methods inherited from BaseRepresenter:
|
| add_multi_representer(data_type, representer)
|
| add_representer(data_type, representer)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseRepresenter:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from BaseRepresenter:
|
| yaml_multi_representers = {}
DATA
__all__ = ['BaseRepresenter', 'SafeRepresenter', 'Representer', 'Repre...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\representer.py
pyyaml.resolver
Python Library Documentation: module yaml.resolver in yaml
NAME
yaml.resolver
CLASSES
builtins.object
BaseResolver
Resolver
class BaseResolver(builtins.object)
| Methods defined here:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_implicit_resolvers = {}
|
| yaml_path_resolvers = {}
class Resolver(BaseResolver)
| Method resolution order:
| Resolver
| BaseResolver
| builtins.object
|
| Data and other attributes defined here:
|
| yaml_implicit_resolvers = {'': [('tag:yaml.org,2002:null', re.compile(...
|
| ----------------------------------------------------------------------
| Methods inherited from BaseResolver:
|
| __init__(self)
| Initialize self. See help(type(self)) for accurate signature.
|
| ascend_resolver(self)
|
| check_resolver_prefix(self, depth, path, kind, current_node, current_index)
|
| descend_resolver(self, current_node, current_index)
|
| resolve(self, kind, value, implicit)
|
| ----------------------------------------------------------------------
| Class methods inherited from BaseResolver:
|
| add_implicit_resolver(tag, regexp, first)
|
| add_path_resolver(tag, path, kind=None)
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseResolver:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from BaseResolver:
|
| DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
|
| DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
|
| DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
|
| yaml_path_resolvers = {}
DATA
__all__ = ['BaseResolver', 'Resolver']
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\resolver.py
pyyaml.safe_dump
Python Library Documentation: function safe_dump in module 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.
pyyaml.safe_dump_all
Python Library Documentation: function safe_dump_all in module 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.
pyyaml.safe_load
Python Library Documentation: function safe_load in module 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.
pyyaml.safe_load_all
Python Library Documentation: function safe_load_all in module 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.
pyyaml.scan
Python Library Documentation: function scan in module yaml
scan(stream, Loader=<class 'yaml.loader.Loader'>)
Scan a YAML stream and produce scanning tokens.
pyyaml.scanner
Python Library Documentation: module yaml.scanner in yaml
NAME
yaml.scanner
DESCRIPTION
# Scanner produces tokens of the following types:
# STREAM-START
# STREAM-END
# DIRECTIVE(name, value)
# DOCUMENT-START
# DOCUMENT-END
# BLOCK-SEQUENCE-START
# BLOCK-MAPPING-START
# BLOCK-END
# FLOW-SEQUENCE-START
# FLOW-MAPPING-START
# FLOW-SEQUENCE-END
# FLOW-MAPPING-END
# BLOCK-ENTRY
# FLOW-ENTRY
# KEY
# VALUE
# ALIAS(value)
# ANCHOR(value)
# TAG(value)
# SCALAR(value, plain, style)
#
# Read comments in the Scanner code for more details.
#
CLASSES
builtins.object
Scanner
yaml.error.MarkedYAMLError(yaml.error.YAMLError)
ScannerError
class Scanner(builtins.object)
| Methods defined here:
|
| __init__(self)
| Initialize the scanner.
|
| add_indent(self, column)
|
| check_block_entry(self)
|
| check_directive(self)
|
| check_document_end(self)
|
| check_document_start(self)
|
| check_key(self)
|
| check_plain(self)
|
| check_token(self, *choices)
|
| check_value(self)
|
| fetch_alias(self)
|
| fetch_anchor(self)
|
| fetch_block_entry(self)
|
| fetch_block_scalar(self, style)
|
| fetch_directive(self)
|
| fetch_document_end(self)
|
| fetch_document_indicator(self, TokenClass)
|
| fetch_document_start(self)
|
| fetch_double(self)
|
| fetch_flow_collection_end(self, TokenClass)
|
| fetch_flow_collection_start(self, TokenClass)
|
| fetch_flow_entry(self)
|
| fetch_flow_mapping_end(self)
|
| fetch_flow_mapping_start(self)
|
| fetch_flow_scalar(self, style)
|
| fetch_flow_sequence_end(self)
|
| fetch_flow_sequence_start(self)
|
| fetch_folded(self)
|
| fetch_key(self)
|
| fetch_literal(self)
|
| fetch_more_tokens(self)
|
| fetch_plain(self)
|
| fetch_single(self)
|
| fetch_stream_end(self)
|
| fetch_stream_start(self)
|
| fetch_tag(self)
|
| fetch_value(self)
|
| get_token(self)
|
| need_more_tokens(self)
|
| next_possible_simple_key(self)
|
| peek_token(self)
|
| remove_possible_simple_key(self)
|
| save_possible_simple_key(self)
|
| scan_anchor(self, TokenClass)
|
| scan_block_scalar(self, style)
|
| scan_block_scalar_breaks(self, indent)
|
| scan_block_scalar_ignored_line(self, start_mark)
|
| scan_block_scalar_indentation(self)
|
| scan_block_scalar_indicators(self, start_mark)
|
| scan_directive(self)
|
| scan_directive_ignored_line(self, start_mark)
|
| scan_directive_name(self, start_mark)
|
| scan_flow_scalar(self, style)
|
| scan_flow_scalar_breaks(self, double, start_mark)
|
| scan_flow_scalar_non_spaces(self, double, start_mark)
|
| scan_flow_scalar_spaces(self, double, start_mark)
|
| scan_line_break(self)
|
| scan_plain(self)
|
| scan_plain_spaces(self, indent, start_mark)
|
| scan_tag(self)
|
| scan_tag_directive_handle(self, start_mark)
|
| scan_tag_directive_prefix(self, start_mark)
|
| scan_tag_directive_value(self, start_mark)
|
| scan_tag_handle(self, name, start_mark)
|
| scan_tag_uri(self, name, start_mark)
|
| scan_to_next_token(self)
|
| scan_uri_escapes(self, name, start_mark)
|
| scan_yaml_directive_number(self, start_mark)
|
| scan_yaml_directive_value(self, start_mark)
|
| stale_possible_simple_keys(self)
|
| unwind_indent(self, column)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| ESCAPE_CODES = {'U': 8, 'u': 4, 'x': 2}
|
| ESCAPE_REPLACEMENTS = {'\t': '\t', ' ': ' ', '"': '"', '/': '/', '0': ...
class ScannerError(yaml.error.MarkedYAMLError)
| ScannerError(context=None, context_mark=None, problem=None, problem_mark=None, note=None)
|
| Method resolution order:
| ScannerError
| yaml.error.MarkedYAMLError
| yaml.error.YAMLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Methods inherited from yaml.error.MarkedYAMLError:
|
| __init__(self, context=None, context_mark=None, problem=None, problem_mark=None, note=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| __str__(self)
| Return str(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from yaml.error.YAMLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
DATA
__all__ = ['Scanner', 'ScannerError']
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\scanner.py
pyyaml.serialize
Python Library Documentation: function serialize in module yaml
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.
pyyaml.serialize_all
Python Library Documentation: function serialize_all in module yaml
serialize_all(nodes, stream=None, Dumper=<class 'yaml.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.
pyyaml.serializer
Python Library Documentation: module yaml.serializer in yaml
NAME
yaml.serializer
CLASSES
builtins.object
Serializer
yaml.error.YAMLError(builtins.Exception)
SerializerError
class Serializer(builtins.object)
| Serializer(encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None)
|
| Methods defined here:
|
| __init__(self, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| anchor_node(self, node)
|
| close(self)
|
| generate_anchor(self, node)
|
| open(self)
|
| serialize(self, node)
|
| serialize_node(self, node, parent, index)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| ANCHOR_TEMPLATE = 'id%03d'
class SerializerError(yaml.error.YAMLError)
| Method resolution order:
| SerializerError
| yaml.error.YAMLError
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors inherited from yaml.error.YAMLError:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
DATA
__all__ = ['Serializer', 'SerializerError']
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\serializer.py
pyyaml.tokens
Python Library Documentation: module yaml.tokens in yaml
NAME
yaml.tokens
CLASSES
builtins.object
Token
AliasToken
AnchorToken
BlockEndToken
BlockEntryToken
BlockMappingStartToken
BlockSequenceStartToken
DirectiveToken
DocumentEndToken
DocumentStartToken
FlowEntryToken
FlowMappingEndToken
FlowMappingStartToken
FlowSequenceEndToken
FlowSequenceStartToken
KeyToken
ScalarToken
StreamEndToken
StreamStartToken
TagToken
ValueToken
class AliasToken(Token)
| AliasToken(value, start_mark, end_mark)
|
| Method resolution order:
| AliasToken
| Token
| builtins.object
|
| Methods defined here:
|
| __init__(self, value, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| id = '<alias>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class AnchorToken(Token)
| AnchorToken(value, start_mark, end_mark)
|
| Method resolution order:
| AnchorToken
| Token
| builtins.object
|
| Methods defined here:
|
| __init__(self, value, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| id = '<anchor>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class BlockEndToken(Token)
| BlockEndToken(start_mark, end_mark)
|
| Method resolution order:
| BlockEndToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '<block end>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class BlockEntryToken(Token)
| BlockEntryToken(start_mark, end_mark)
|
| Method resolution order:
| BlockEntryToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '-'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class BlockMappingStartToken(Token)
| BlockMappingStartToken(start_mark, end_mark)
|
| Method resolution order:
| BlockMappingStartToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '<block mapping start>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class BlockSequenceStartToken(Token)
| BlockSequenceStartToken(start_mark, end_mark)
|
| Method resolution order:
| BlockSequenceStartToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '<block sequence start>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class DirectiveToken(Token)
| DirectiveToken(name, value, start_mark, end_mark)
|
| Method resolution order:
| DirectiveToken
| Token
| builtins.object
|
| Methods defined here:
|
| __init__(self, name, value, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| id = '<directive>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class DocumentEndToken(Token)
| DocumentEndToken(start_mark, end_mark)
|
| Method resolution order:
| DocumentEndToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '<document end>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class DocumentStartToken(Token)
| DocumentStartToken(start_mark, end_mark)
|
| Method resolution order:
| DocumentStartToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '<document start>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class FlowEntryToken(Token)
| FlowEntryToken(start_mark, end_mark)
|
| Method resolution order:
| FlowEntryToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = ','
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class FlowMappingEndToken(Token)
| FlowMappingEndToken(start_mark, end_mark)
|
| Method resolution order:
| FlowMappingEndToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '}'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class FlowMappingStartToken(Token)
| FlowMappingStartToken(start_mark, end_mark)
|
| Method resolution order:
| FlowMappingStartToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '{'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class FlowSequenceEndToken(Token)
| FlowSequenceEndToken(start_mark, end_mark)
|
| Method resolution order:
| FlowSequenceEndToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = ']'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class FlowSequenceStartToken(Token)
| FlowSequenceStartToken(start_mark, end_mark)
|
| Method resolution order:
| FlowSequenceStartToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '['
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class KeyToken(Token)
| KeyToken(start_mark, end_mark)
|
| Method resolution order:
| KeyToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '?'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class ScalarToken(Token)
| ScalarToken(value, plain, start_mark, end_mark, style=None)
|
| Method resolution order:
| ScalarToken
| Token
| builtins.object
|
| Methods defined here:
|
| __init__(self, value, plain, start_mark, end_mark, style=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| id = '<scalar>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class StreamEndToken(Token)
| StreamEndToken(start_mark, end_mark)
|
| Method resolution order:
| StreamEndToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = '<stream end>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class StreamStartToken(Token)
| StreamStartToken(start_mark=None, end_mark=None, encoding=None)
|
| Method resolution order:
| StreamStartToken
| Token
| builtins.object
|
| Methods defined here:
|
| __init__(self, start_mark=None, end_mark=None, encoding=None)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| id = '<stream start>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class TagToken(Token)
| TagToken(value, start_mark, end_mark)
|
| Method resolution order:
| TagToken
| Token
| builtins.object
|
| Methods defined here:
|
| __init__(self, value, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| id = '<tag>'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class Token(builtins.object)
| Token(start_mark, end_mark)
|
| Methods defined here:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
class ValueToken(Token)
| ValueToken(start_mark, end_mark)
|
| Method resolution order:
| ValueToken
| Token
| builtins.object
|
| Data and other attributes defined here:
|
| id = ':'
|
| ----------------------------------------------------------------------
| Methods inherited from Token:
|
| __init__(self, start_mark, end_mark)
| Initialize self. See help(type(self)) for accurate signature.
|
| __repr__(self)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Data descriptors inherited from Token:
|
| __dict__
| dictionary for instance variables
|
| __weakref__
| list of weak references to the object
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\yaml\tokens.py
pyyaml.unsafe_load
Python Library Documentation: function unsafe_load in module 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.
pyyaml.unsafe_load_all
Python Library Documentation: function unsafe_load_all in module 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.
pyyaml.warnings
Python Library Documentation: function warnings in module yaml
warnings(settings=None)
#------------------------------------------------------------------------------
# XXX "Warnings control" is now deprecated. Leaving in the API function to not
# break code that uses it.
#------------------------------------------------------------------------------