pyats.log.commands.parser package¶
Submodules¶
- class pyats.log.commands.parser.base_parser.BaseResultsParser(archive, result_id='', uuid='', store_results=False, related_id='N/A', component='N/A', branch='N/A', created_by='', meta_info={})¶
Bases:
pyats.log.commands.parser._base_parser_internal.BaseResultsParser
- class pyats.log.commands.parser.base_parser.LogExecute(archive, **kwargs)¶
Bases:
pyats.log.commands.parser._base_parser_internal.LogExecute
- class pyats.log.commands.parser.base_parser.LogSection(archive, section, host, result_id='')¶
Bases:
pyats.log.commands.parser._base_parser_internal.LogSection
- property child_execute¶
finds all api calls from this log file this api call is cached for performance
- class pyats.log.commands.parser.base_parser.Pattern(archive, result_id='', uuid='', store_results=False, related_id='N/A', component='N/A', branch='N/A', created_by='', meta_info={})¶
Bases:
pyats.log.commands.parser._base_parser_internal.BaseResultsParser
- class pyats.log.commands.parser.xml_parser.TRADeXMLResultParser(archive, result_id='', uuid='', store_results=False, related_id='N/A', component='N/A', branch='N/A', created_by='', meta_info={})¶
Bases:
pyats.log.commands.parser.base_parser.BaseResultsParser
- BLANK = ''¶
- NS = {'x': 'http://wwwin-ats.cisco.com/xml/schema/aereport'}¶
- get_root()¶
- async parse()¶
- class pyats.log.commands.parser.yaml_parser.YamlResultParser(archive, result_id='', uuid='', store_results=False, related_id='N/A', component='N/A', branch='N/A', created_by='', meta_info={})¶
Bases:
pyats.log.commands.parser.base_parser.BaseResultsParser
- get_json_data()¶
- get_yaml_data()¶
- async parse()¶
Parse the yaml file in the given archive
The parsed result contains 3 main sections: ‘meta’: Info about the job/suite itself ‘scripts’: Info about each script (and it’s sections) ‘summary’: Summary of the results for that job
The parsed results is stored in self.results