pyats.easypy.reporter package¶
Submodules¶
-
class
pyats.easypy.reporter.ae.
AEJobReporter
(parent=None)¶ Bases:
pyats.easypy.reporter.context.ContextReporter
-
child
()¶
-
start
(job)¶
-
stop
()¶
-
-
class
pyats.easypy.reporter.ae.
AEPluginReporter
(*args, plugin, obj, **kwargs)¶ Bases:
pyats.easypy.reporter.context.ContextReporter
-
child
(section)¶
-
start
()¶
-
stop
()¶
-
-
class
pyats.easypy.reporter.ae.
AEPluginSectionReporter
(section, *args, **kwargs)¶ Bases:
pyats.easypy.reporter.context.ContextReporter
-
child
(section)¶
-
start
()¶
-
stop
(type_=None, val=None, tb=None)¶
-
-
class
pyats.easypy.reporter.ae.
AEReporter
(*args, **kwargs)¶ Bases:
pyats.easypy.reporter.base.Reporter
Easypy default reporter that calls AEClient to start and stop job/task reporting contexts. At the end of jobfile execution, this class also generates:
corresponding jobfile results and email report contents.
Result yaml file
ResultDetails/ResultSummary xml files
-
child
()¶
-
classmethod
configure_parser
(parser, legacy_cli=True)¶ configures the main runtime parser with this component’s own parser group.
Note
to be implemented by the component owner/developer.
should be adding argument groups and args to the provided parser
-
details
()¶
-
log_image_key_warnings
(loadable_dict, meta_dict)¶
-
plugin
(plugin, obj)¶
-
retrieve_argument
(meta_arg) → unicode¶
-
start
()¶
-
stop
()¶
-
class
pyats.easypy.reporter.base.
Reporter
(*args, **kwargs)¶ Bases:
pyats.easypy.base.Component
,pyats.easypy.reporter.context.ContextReporter
-
classmethod
configure_parser
(parser, legacy_cli=True)¶ configures the main runtime parser with this component’s own parser group.
Note
to be implemented by the component owner/developer.
should be adding argument groups and args to the provided parser
-
classmethod
-
class
pyats.easypy.reporter.context.
ContextReporter
(parent=None)¶ Bases:
object
A context reporter is a reporter that can be used as a context manager. It automatically registers/reports/logs the start and end of content running within it, and is naturally used to report on events, activities and results of this content.
A context reporter is designed as a nested chain of parent-child relationship. Each reporter could have a parent, and each children is instantiated through the the parent’s child() api. This api is essentially an injection point allowing subclasses to implement their own parent/child relationship.
When a context reporter has a parent, it automatically gain the ability to access its parent’s (and subsequently, all parent’s parents) attribute as its own attributes without having to explicitly state self.parent.<attr>.
-
child
()¶
-
property
parent
¶
-
property
parents
¶
-
start
()¶
-
stop
()¶
-