Add method to make AutoProcessor print all data models
This commit is contained in:
parent
b4cd9e2043
commit
b42fbbe1c6
2 changed files with 7 additions and 1 deletions
|
@ -430,6 +430,11 @@ class AutoProcessor():
|
||||||
**kwargs,
|
**kwargs,
|
||||||
).process(events)
|
).process(events)
|
||||||
|
|
||||||
|
def print_data(self) -> None:
|
||||||
|
"""Print data models of all handlers."""
|
||||||
|
for handler in self.handlers:
|
||||||
|
handler.data.print_data()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_applicable_event_handlers(
|
def get_applicable_event_handlers(
|
||||||
events: List[DictEvent],
|
events: List[DictEvent],
|
||||||
|
|
|
@ -22,4 +22,5 @@ def main():
|
||||||
input_path = get_input_path()
|
input_path = get_input_path()
|
||||||
|
|
||||||
events = load_file(input_path)
|
events = load_file(input_path)
|
||||||
AutoProcessor(events)
|
processor = AutoProcessor(events)
|
||||||
|
processor.print_data()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue