assets_guardian.core.reporting.excel.generic_parserο
Functions
|
Parses an Excel sheet to instantiate domain models. |
- assets_guardian.core.reporting.excel.generic_parser.parse_workbook_data(workbook_data: dict[str, Any], sheet_name: str, model_class: type, rules_file_path: str | Path, source: str = 'unknown') list[Any][source]ο
Parses an Excel sheet to instantiate domain models.
- Parameters:
workbook_data β Raw workbook data read by read_workbook.
sheet_name β Name of the Excel sheet to parse.
model_class β The domain model class to instantiate (e.g., Identity).
rules_file_path β Path to the excel_config.json containing the rules.
source β Technical name of the source (e.g., βgitlabβ).
- Returns:
List of reconstructed domain model instances.
- Return type:
list[Any]