find_work.core.reporters#

Result reporters to use for output.

class find_work.core.reporters.AbstractReporter(options: MainOptions)#

Bases: AbstractContextManager, Generic[T]

Generic class for result reporters.

reporter_name: str#

Name to identify the reporter.

result_type: type#

Result type (class) supported by this reporter.

abstract add_result(item: T) None#

Format and print a single item to the standard output.

Parameters:

item – an instance of one of the supported result types

property active: bool#

Whether all dependencies of the reporter are met.