# daan31/eat_streamlit_deploy architecture

> Architecture diagram of the GitHub repository daan31/eat_streamlit_deploy, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/daan31/eat_streamlit_deploy
- Repository: https://github.com/daan31/eat_streamlit_deploy

## Overview

EAT is a Streamlit energy-analysis app for loading meter and weather data, exploring energy use, and exporting reports. Its main user workflow runs through the web interface: import data, choose analyses and periods, inspect charts and metrics, then create PowerPoint or Excel outputs. Major branches include interactive and static charting, weather and capacity analyses, configurable chart formatting, and report calculations. The README and source index establish these capabilities; sampled excerpts show only some internal calls, so other app-to-module links are marked unverified.

Main entry points: [`streamlit_app.py`](https://github.com/daan31/eat_streamlit_deploy/blob/main/streamlit_app.py) (Streamlit app), [`energy_app/graph_worker.py`](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/graph_worker.py) (Graph rendering), [`energy_app/plotly_charts.py`](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/plotly_charts.py) (Interactive charts), [`energy_app/utility_graphs.py`](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/utility_graphs.py) (Utility charts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Web interface"]
  node_streamlit["Streamlit app<br/>[streamlit_app.py]"]
end

subgraph group_analysis["Energy analysis"]
  node_meter_import["Meter import<br/>[meter_import.py]"]
  node_processing["Data processing<br/>[processing.py]"]
  node_weather_download["KNMI download"]
  node_weather_helper["Weather alignment"]
  node_metrics["Analysis metrics"]
  node_time_selection["Time selection<br/>[time_selection.py]"]
end

subgraph group_visualization["Charts and visuals"]
  node_plotly["Interactive charts<br/>[plotly_charts.py]"]
  node_graph_worker["Graph rendering<br/>[graph_worker.py]"]
  node_plotting["Analysis plots<br/>[plotting.py]"]
  node_utility_graphs["Utility charts<br/>[utility_graphs.py]"]
  node_interactive_ldc["Interactive LDC"]
end

subgraph group_reporting["Reports and exports"]
  node_report_graphs["Report charts<br/>[report_graphs.py]"]
  node_report_values["Report calculations<br/>[report_values.py]"]
  node_report_period["Report periods<br/>[report_period.py]"]
  node_ppt["PowerPoint insertion<br/>[ppt_inserter.py]"]
  node_quickscan["Quickscan template"]
  node_excel_export["Excel export<br/>[combined_export.py]"]
end

subgraph group_shared["Shared services"]
  node_formatting["Chart formatting"]
  node_settings["App settings<br/>[app_settings.py]"]
  node_config["Configuration<br/>[config.py]"]
end

node_user(("Analyst"))

node_user -->|"uses"| node_streamlit
node_streamlit -.->|"imports data"| node_meter_import
node_streamlit -.->|"processes data"| node_processing
node_streamlit -.->|"loads weather"| node_weather_download
node_streamlit -.->|"shows charts"| node_plotly
node_streamlit -.->|"requests rendering"| node_graph_worker
node_streamlit -.->|"shows analysis"| node_interactive_ldc
node_streamlit -.->|"requests metrics"| node_metrics
node_streamlit -.->|"creates report charts"| node_report_graphs
node_streamlit -.->|"calculates report fields"| node_report_values
node_streamlit -.->|"exports PowerPoint"| node_ppt
node_streamlit -.->|"uses template"| node_quickscan
node_streamlit -.->|"exports Excel"| node_excel_export
node_streamlit -.->|"edits chart style"| node_formatting
node_streamlit -.->|"selects report period"| node_report_period
node_graph_worker -->|"calls plotting"| node_plotting
node_graph_worker -->|"selects time range"| node_time_selection
node_graph_worker -->|"adds weather lines"| node_utility_graphs
node_plotting -->|"uses temperature data"| node_weather_helper
node_plotly -->|"calculates metrics"| node_metrics
node_plotly -.->|"uses graph rendering"| node_graph_worker
node_utility_graphs -->|"uses weather metrics"| node_metrics
node_utility_graphs -->|"uses temperature data"| node_weather_helper
node_report_graphs -->|"uses report periods"| node_report_period
node_report_graphs -->|"uses processing"| node_processing
node_config -->|"loads settings"| node_settings
node_weather_download -.->|"uses paths"| node_settings

click node_streamlit "https://github.com/daan31/eat_streamlit_deploy/blob/main/streamlit_app.py"
click node_meter_import "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/meter_import.py"
click node_processing "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/processing.py"
click node_weather_download "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/KNMI_uur_data_download.py"
click node_weather_helper "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/Weather_helper_file.py"
click node_metrics "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/analysis_metrics.py"
click node_time_selection "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/time_selection.py"
click node_plotly "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/plotly_charts.py"
click node_graph_worker "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/graph_worker.py"
click node_plotting "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/plotting.py"
click node_utility_graphs "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/utility_graphs.py"
click node_interactive_ldc "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/interactive_ldc_html.py"
click node_report_graphs "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/report_graphs.py"
click node_report_values "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/report_values.py"
click node_report_period "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/report_period.py"
click node_ppt "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/ppt_inserter.py"
click node_quickscan "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/quickscan_template.py"
click node_excel_export "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/combined_export.py"
click node_formatting "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/chart_formatting.py"
click node_settings "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/app_settings.py"
click node_config "https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/config.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_streamlit toneBlue
class node_meter_import,node_processing,node_weather_download,node_weather_helper,node_metrics,node_time_selection toneAmber
class node_plotly,node_graph_worker,node_plotting,node_utility_graphs,node_interactive_ldc toneMint
class node_report_graphs,node_report_values,node_report_period,node_ppt,node_quickscan,node_excel_export toneRose
class node_formatting,node_settings,node_config,node_user toneIndigo
```

## Components

### Web interface

- [Streamlit app](https://github.com/daan31/eat_streamlit_deploy/blob/main/streamlit_app.py): `streamlit_app.py`

### Energy analysis

- [Meter import](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/meter_import.py): `energy_app/meter_import.py`
- [Data processing](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/processing.py): `energy_app/processing.py`
- [KNMI download](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/KNMI_uur_data_download.py): `energy_app/KNMI_uur_data_download.py`
- [Weather alignment](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/Weather_helper_file.py): `energy_app/Weather_helper_file.py`
- [Analysis metrics](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/analysis_metrics.py): `energy_app/analysis_metrics.py`
- [Time selection](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/time_selection.py): `energy_app/time_selection.py`

### Charts and visuals

- [Interactive charts](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/plotly_charts.py): `energy_app/plotly_charts.py`
- [Graph rendering](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/graph_worker.py): `energy_app/graph_worker.py`
- [Analysis plots](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/plotting.py): `energy_app/plotting.py`
- [Utility charts](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/utility_graphs.py): `energy_app/utility_graphs.py`
- [Interactive LDC](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/interactive_ldc_html.py): `energy_app/interactive_ldc_html.py`

### Reports and exports

- [Report charts](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/report_graphs.py): `energy_app/report_graphs.py`
- [Report calculations](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/report_values.py): `energy_app/report_values.py`
- [Report periods](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/report_period.py): `energy_app/report_period.py`
- [PowerPoint insertion](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/ppt_inserter.py): `energy_app/ppt_inserter.py`
- [Quickscan template](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/quickscan_template.py): `energy_app/quickscan_template.py`
- [Excel export](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/combined_export.py): `energy_app/combined_export.py`

### Shared services

- [Chart formatting](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/chart_formatting.py): `energy_app/chart_formatting.py`
- [App settings](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/app_settings.py): `energy_app/app_settings.py`
- [Configuration](https://github.com/daan31/eat_streamlit_deploy/blob/main/energy_app/config.py): `energy_app/config.py`

### Other components

- **Analyst**

## Connections

- Analyst → Streamlit app: uses (evidence: `README.md`)
- Streamlit app → Meter import: imports data (evidence: `streamlit_app.py`)
- Streamlit app → Data processing: processes data (evidence: `streamlit_app.py`)
- Streamlit app → KNMI download: loads weather (evidence: `streamlit_app.py`)
- Streamlit app → Interactive charts: shows charts (evidence: `streamlit_app.py`)
- Streamlit app → Graph rendering: requests rendering (evidence: `streamlit_app.py`)
- Streamlit app → Interactive LDC: shows analysis (evidence: `streamlit_app.py`)
- Streamlit app → Analysis metrics: requests metrics (evidence: `streamlit_app.py`)
- Streamlit app → Report charts: creates report charts (evidence: `streamlit_app.py`)
- Streamlit app → Report calculations: calculates report fields (evidence: `streamlit_app.py`)
- Streamlit app → PowerPoint insertion: exports PowerPoint (evidence: `streamlit_app.py`)
- Streamlit app → Quickscan template: uses template (evidence: `streamlit_app.py`)
- Streamlit app → Excel export: exports Excel (evidence: `streamlit_app.py`)
- Streamlit app → Chart formatting: edits chart style (evidence: `streamlit_app.py`)
- Streamlit app → Report periods: selects report period (evidence: `streamlit_app.py`)
- Graph rendering → Analysis plots: calls plotting (evidence: `energy_app/graph_worker.py`)
- Graph rendering → Time selection: selects time range (evidence: `energy_app/graph_worker.py`)
- Graph rendering → Utility charts: adds weather lines (evidence: `energy_app/graph_worker.py`)
- Analysis plots → Weather alignment: uses temperature data (evidence: `energy_app/plotting.py`)
- Interactive charts → Analysis metrics: calculates metrics (evidence: `energy_app/plotly_charts.py`)
- Interactive charts → Graph rendering: uses graph rendering (evidence: `energy_app/plotly_charts.py`)
- Utility charts → Analysis metrics: uses weather metrics (evidence: `energy_app/utility_graphs.py`)
- Utility charts → Weather alignment: uses temperature data (evidence: `energy_app/utility_graphs.py`)
- Report charts → Report periods: uses report periods (evidence: `energy_app/report_graphs.py`)
- Report charts → Data processing: uses processing (evidence: `energy_app/report_graphs.py`)
- Configuration → App settings: loads settings (evidence: `energy_app/config.py`)
- KNMI download → App settings: uses paths
