How r-niemans/nhr_excepties works
Project type and purpose
• This is a standalone Python automation tool whose purpose is to ingest NHR data, extract “exceptions” according to configurable rules, assemble those into a formatted NHR Excel file, and copy or deploy the result.
File structure
• Top-level scripts:
• controller_main.py – the orchestration entrypoint
• copy_files.py – handles copying/deploying the final workbook
• Configuration:
• config/datasets_config.py – dataset paths, names, parameters
• Exception-handling module:
• excepties/excepties_main.py – high-level exception pipeline
• excepties/excepties_functies.py – rule application, filtering functions
• Template creation module:
• nhr_template_creation/nhr_main.py – coordinates Excel template generation
• nhr_template_creation/nhr_template_class.py – encapsulates workbook/sheet logic
• nhr_template_creation/nhr_rules_functie.py – transforms exception data to template format
• nhr_template_creation/rules/*.json – JSON rule definitions per data category
README
• Confirms: automation of extracting exceptions from NHR data and compiling an NHR Excel.
• No other high-level architecture described, so we infer a simple layered pipeline.
Detail
• JSON rule files as a sub-component of the Template and Exception services
• Excel library as an external dependency used by the Template Generator