pyirk.reportgenerator

Module Contents

Classes

ReportGenerator

Omnipotent class that manages the report-generation. Assumed to be a singleton.

Functions

generate_report

resolve_entities_in_nested_data

process data: detect and resolve pyirk key strings, leaving everything else unchanged (assuming literals)

API

pyirk.reportgenerator.generate_report(reportconf_path: str)
class pyirk.reportgenerator.ReportGenerator(reportconf_path: str, write_file: bool = True)

Omnipotent class that manages the report-generation. Assumed to be a singleton.

Initialization

static load_report_conf(reportconf_path: str) dict
load_modules() list
resolve_entities()
generate_report()
pyirk.reportgenerator.resolve_entities_in_nested_data(data)

process data: detect and resolve pyirk key strings, leaving everything else unchanged (assuming literals)

:param data: one of (dict, str, list, int, float)

If data is a structure this function is applied recursively to its elements (dict-case: to the values).