# alinouna/ftth-dti-generator architecture

> Architecture diagram of the GitHub repository alinouna/ftth-dti-generator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alinouna/ftth-dti-generator
- Repository: https://github.com/alinouna/ftth-dti-generator

## Overview

This repository documents a Python application that turns network shapefiles, optical-route spreadsheets and field photos into standardized FTTH building technical dossiers (DTI). Its principal workflow is multi-source extraction, network-configuration selection, and Excel workbook generation, including photo placement, map links and formula recalculation. The application source is encrypted in dti-generator.zip and was not available for inspection, so the graph captures only capabilities and relationships stated in the README; it does not infer internal calls or module boundaries.

Main entry points: [`dti-generator.zip`](https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip) (Workbook generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Source data"]
  node_shapefiles["Shapefiles"]
  node_route_excel["Route Excel"]
  node_field_photos["Field photos"]
end

subgraph group_extraction["Data extraction"]
  node_network_records["Network records<br/>[dti-generator.zip]"]
  node_shapefile_extraction["Shapefile extraction<br/>[dti-generator.zip]"]
  node_excel_extraction["Excel extraction<br/>[dti-generator.zip]"]
end

subgraph group_generation["Workbook generation"]
  node_template_selection["Template selection<br/>[dti-generator.zip]"]
  node_workbook_generation["Workbook generation<br/>[dti-generator.zip]"]
  node_merged_cells["Merged-cell filling<br/>[dti-generator.zip]"]
  node_photo_placement["Photo placement<br/>[dti-generator.zip]"]
  node_map_links["Map links<br/>[dti-generator.zip]"]
  node_formula_recalculation["Formula recalculation<br/>[dti-generator.zip]"]
end

subgraph group_output["Deliverables"]
  node_dti_workbook["DTI workbook<br/>[dti-generator.zip]"]
end

node_libreoffice["LibreOffice"]

node_shapefiles -->|"provides data"| node_shapefile_extraction
node_route_excel -->|"provides data"| node_excel_extraction
node_field_photos -->|"provides photos"| node_workbook_generation
node_shapefile_extraction -->|"extracts records"| node_network_records
node_excel_extraction -->|"extracts records"| node_network_records
node_network_records -->|"informs configuration"| node_template_selection
node_template_selection -->|"selects template"| node_workbook_generation
node_workbook_generation -->|"fills cells"| node_merged_cells
node_workbook_generation -->|"inserts photos"| node_photo_placement
node_workbook_generation -->|"adds map links"| node_map_links
node_workbook_generation -->|"recalculates formulas"| node_formula_recalculation
node_formula_recalculation -->|"uses headless"| node_libreoffice
node_workbook_generation -->|"produces workbook"| node_dti_workbook

click node_network_records "https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip"
click node_shapefile_extraction "https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip"
click node_excel_extraction "https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip"
click node_template_selection "https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip"
click node_workbook_generation "https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip"
click node_merged_cells "https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip"
click node_photo_placement "https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip"
click node_map_links "https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip"
click node_formula_recalculation "https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip"
click node_dti_workbook "https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip"

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_shapefiles,node_route_excel,node_field_photos toneBlue
class node_network_records,node_shapefile_extraction,node_excel_extraction toneAmber
class node_template_selection,node_workbook_generation,node_merged_cells,node_photo_placement,node_map_links,node_formula_recalculation toneMint
class node_dti_workbook toneRose
class node_libreoffice toneIndigo
```

## Components

### Source data

- **Shapefiles**
- **Route Excel**
- **Field photos**

### Data extraction

- [Network records](https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip): `dti-generator.zip`
- [Shapefile extraction](https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip): `dti-generator.zip`
- [Excel extraction](https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip): `dti-generator.zip`

### Workbook generation

- [Template selection](https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip): `dti-generator.zip`
- [Workbook generation](https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip): `dti-generator.zip`
- [Merged-cell filling](https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip): `dti-generator.zip`
- [Photo placement](https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip): `dti-generator.zip`
- [Map links](https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip): `dti-generator.zip`
- [Formula recalculation](https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip): `dti-generator.zip`

### Deliverables

- [DTI workbook](https://github.com/alinouna/ftth-dti-generator/blob/main/dti-generator.zip): `dti-generator.zip`

### Other components

- **LibreOffice**

## Connections

- Shapefiles → Shapefile extraction: provides data (evidence: `README.md`)
- Route Excel → Excel extraction: provides data (evidence: `README.md`)
- Field photos → Workbook generation: provides photos (evidence: `README.md`)
- Shapefile extraction → Network records: extracts records (evidence: `README.md`)
- Excel extraction → Network records: extracts records (evidence: `README.md`)
- Network records → Template selection: informs configuration (evidence: `README.md`)
- Template selection → Workbook generation: selects template (evidence: `README.md`)
- Workbook generation → Merged-cell filling: fills cells (evidence: `README.md`)
- Workbook generation → Photo placement: inserts photos (evidence: `README.md`)
- Workbook generation → Map links: adds map links (evidence: `README.md`)
- Workbook generation → Formula recalculation: recalculates formulas (evidence: `README.md`)
- Formula recalculation → LibreOffice: uses headless (evidence: `README.md`)
- Workbook generation → DTI workbook: produces workbook (evidence: `README.md`)
