piglot.utils.yaml_parser.UniqueKeyLoader
- class UniqueKeyLoader(stream)[source]
Bases:
SafeLoaderYAML loader that checks for duplicate keys in mappings.
Adapted from https://gist.github.com/pypt/94d747fe5180851196eb.
Methods
add_constructoradd_implicit_resolveradd_indentadd_multi_constructoradd_path_resolverascend_resolvercheck_block_entrycheck_datacheck_directivecheck_document_endcheck_document_startcheck_eventcheck_keycheck_nodecheck_plaincheck_printablecheck_resolver_prefixBlock special attributes/methods from being set in a newly created object, to prevent user-controlled methods from being called during deserialization
check_tokencheck_valuecompose_documentcompose_mapping_nodecompose_nodecompose_scalar_nodecompose_sequence_nodeconstruct_documentconstruct_objectconstruct_pairsconstruct_scalarconstruct_sequenceconstruct_undefinedconstruct_yaml_binaryconstruct_yaml_boolconstruct_yaml_floatconstruct_yaml_intconstruct_yaml_mapconstruct_yaml_nullconstruct_yaml_objectconstruct_yaml_omapconstruct_yaml_pairsconstruct_yaml_seqconstruct_yaml_setconstruct_yaml_strconstruct_yaml_timestampdescend_resolverdetermine_encodingdisposefetch_aliasfetch_anchorfetch_block_entryfetch_block_scalarfetch_directivefetch_document_endfetch_document_indicatorfetch_document_startfetch_doublefetch_flow_collection_endfetch_flow_collection_startfetch_flow_entryfetch_flow_mapping_endfetch_flow_mapping_startfetch_flow_scalarfetch_flow_sequence_endfetch_flow_sequence_startfetch_foldedfetch_keyfetch_literalfetch_more_tokensfetch_plainfetch_singlefetch_stream_endfetch_stream_startfetch_tagfetch_valueflatten_mappingforwardget_dataget_eventget_markget_nodeget_single_dataget_single_nodeget_tokenneed_more_tokensnext_possible_simple_keyparse_block_mapping_first_keyparse_block_mapping_keyparse_block_mapping_valueparse_block_nodeparse_block_node_or_indentless_sequenceparse_block_sequence_entryparse_block_sequence_first_entryparse_document_contentparse_document_endparse_document_startparse_flow_mapping_empty_valueparse_flow_mapping_first_keyparse_flow_mapping_keyparse_flow_mapping_valueparse_flow_nodeparse_flow_sequence_entryparse_flow_sequence_entry_mapping_endparse_flow_sequence_entry_mapping_keyparse_flow_sequence_entry_mapping_valueparse_flow_sequence_first_entryparse_implicit_document_startparse_indentless_sequence_entryparse_nodeparse_stream_startpeekpeek_eventpeek_tokenprefixprocess_directivesprocess_empty_scalarremove_possible_simple_keyresolvesave_possible_simple_keyscan_anchorscan_block_scalarscan_block_scalar_breaksscan_block_scalar_ignored_linescan_block_scalar_indentationscan_block_scalar_indicatorsscan_directivescan_directive_ignored_linescan_directive_namescan_flow_scalarscan_flow_scalar_breaksscan_flow_scalar_non_spacesscan_flow_scalar_spacesscan_line_breakscan_plainscan_plain_spacesscan_tagscan_tag_directive_handlescan_tag_directive_prefixscan_tag_directive_valuescan_tag_handlescan_tag_uriscan_to_next_tokenscan_uri_escapesscan_yaml_directive_numberscan_yaml_directive_valuestale_possible_simple_keysunwind_indentupdateupdate_rawAttributes
DEFAULT_MAPPING_TAGDEFAULT_SCALAR_TAGDEFAULT_SEQUENCE_TAGDEFAULT_TAGSESCAPE_CODESESCAPE_REPLACEMENTSNON_PRINTABLEbool_valuesinf_valuenan_valuetimestamp_regexpyaml_constructorsyaml_implicit_resolversyaml_multi_constructorsyaml_path_resolvers- check_state_key(key)
Block special attributes/methods from being set in a newly created object, to prevent user-controlled methods from being called during deserialization