# git-uvid/glvsbank-recon architecture

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

- Interactive diagram: https://gitdiagram.com/git-uvid/glvsbank-recon
- Repository: https://github.com/git-uvid/glvsbank-recon

## Overview

This is a Streamlit application for reconciling general-ledger (GL) transactions against bank statements, with a separate GL categorization stage and outstanding-check reporting. Users upload Excel workbooks, categorize GL data, run reconciliation, and download formatted reports. The graph preserves the documented workflow and the sampled reconciliation, pivot, and export responsibilities. Some UI and report paths are only partially excerpted, so edges are limited to relationships visible in excerpts or the source index.

Main entry points: [`reconciliation_core.py`](https://github.com/git-uvid/glvsbank-recon/blob/main/reconciliation_core.py) (Reconciliation orchestrator), [`app_ui.py`](https://github.com/git-uvid/glvsbank-recon/blob/main/app_ui.py) (Upload and workflow UI), [`stExportXl.py`](https://github.com/git-uvid/glvsbank-recon/blob/main/stExportXl.py) (Formatted Excel export), [`stMain1.py`](https://github.com/git-uvid/glvsbank-recon/blob/main/stMain1.py) (Streamlit entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Application interface"]
  node_entry["Streamlit entry<br/>[stMain1.py]"]
  node_ui["Upload and workflow UI<br/>[app_ui.py]"]
end

subgraph group_categorization["GL categorization"]
  node_glrules["GL type rules<br/>[category_gl.py]"]
end

subgraph group_reconciliation["Reconciliation processing"]
  node_recon["Reconciliation orchestrator"]
  node_bankgl["GL and bank matching<br/>[stBankGL.py]"]
  node_outstanding["Outstanding checks<br/>[stOutstanding.py]"]
end

subgraph group_reporting["Reports and configuration"]
  node_settings["Column and report settings<br/>[config.py]"]
  node_pivots["Pivot and difference grids<br/>[stCreatePivot.py]"]
  node_excel["Formatted Excel export<br/>[stExportXl.py]"]
end

node_user(("Finance user"))
node_workbooks["Uploaded Excel workbooks"]
node_download["Reconciliation workbook"]

node_user -->|"uploads files"| node_ui
node_entry -->|"renders workflow"| node_ui
node_workbooks -->|"reads sheets"| node_ui
node_ui -->|"categorizes GL"| node_glrules
node_ui -->|"runs reconciliation"| node_recon
node_recon -->|"cleans and matches"| node_bankgl
node_recon -->|"processes checks"| node_outstanding
node_recon -->|"creates pivots"| node_pivots
node_recon -->|"writes report"| node_excel
node_excel -->|"exports workbook"| node_download

click node_entry "https://github.com/git-uvid/glvsbank-recon/blob/main/stMain1.py"
click node_ui "https://github.com/git-uvid/glvsbank-recon/blob/main/app_ui.py"
click node_glrules "https://github.com/git-uvid/glvsbank-recon/blob/main/category_gl.py"
click node_settings "https://github.com/git-uvid/glvsbank-recon/blob/main/config.py"
click node_recon "https://github.com/git-uvid/glvsbank-recon/blob/main/reconciliation_core.py"
click node_bankgl "https://github.com/git-uvid/glvsbank-recon/blob/main/stBankGL.py"
click node_outstanding "https://github.com/git-uvid/glvsbank-recon/blob/main/stOutstanding.py"
click node_pivots "https://github.com/git-uvid/glvsbank-recon/blob/main/stCreatePivot.py"
click node_excel "https://github.com/git-uvid/glvsbank-recon/blob/main/stExportXl.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_entry,node_ui,node_user toneBlue
class node_glrules toneAmber
class node_recon,node_bankgl,node_outstanding toneMint
class node_settings,node_pivots,node_excel toneRose
class node_workbooks,node_download toneIndigo
```

## Components

### Application interface

- [Streamlit entry](https://github.com/git-uvid/glvsbank-recon/blob/main/stMain1.py): `stMain1.py`
- [Upload and workflow UI](https://github.com/git-uvid/glvsbank-recon/blob/main/app_ui.py): `app_ui.py`

### GL categorization

- [GL type rules](https://github.com/git-uvid/glvsbank-recon/blob/main/category_gl.py): `category_gl.py`

### Reconciliation processing

- [Reconciliation orchestrator](https://github.com/git-uvid/glvsbank-recon/blob/main/reconciliation_core.py): `reconciliation_core.py`
- [GL and bank matching](https://github.com/git-uvid/glvsbank-recon/blob/main/stBankGL.py): `stBankGL.py`
- [Outstanding checks](https://github.com/git-uvid/glvsbank-recon/blob/main/stOutstanding.py): `stOutstanding.py`

### Reports and configuration

- [Column and report settings](https://github.com/git-uvid/glvsbank-recon/blob/main/config.py): `config.py`
- [Pivot and difference grids](https://github.com/git-uvid/glvsbank-recon/blob/main/stCreatePivot.py): `stCreatePivot.py`
- [Formatted Excel export](https://github.com/git-uvid/glvsbank-recon/blob/main/stExportXl.py): `stExportXl.py`

### Other components

- **Finance user**
- **Uploaded Excel workbooks**
- **Reconciliation workbook**

## Connections

- Finance user → Upload and workflow UI: uploads files (evidence: `app_ui.py`)
- Streamlit entry → Upload and workflow UI: renders workflow (evidence: `stMain1.py`)
- Uploaded Excel workbooks → Upload and workflow UI: reads sheets (evidence: `app_ui.py`)
- Upload and workflow UI → GL type rules: categorizes GL (evidence: `app_ui.py`)
- Upload and workflow UI → Reconciliation orchestrator: runs reconciliation (evidence: `app_ui.py`)
- Reconciliation orchestrator → GL and bank matching: cleans and matches (evidence: `reconciliation_core.py`)
- Reconciliation orchestrator → Outstanding checks: processes checks (evidence: `reconciliation_core.py`)
- Reconciliation orchestrator → Pivot and difference grids: creates pivots (evidence: `reconciliation_core.py`)
- Reconciliation orchestrator → Formatted Excel export: writes report (evidence: `reconciliation_core.py`)
- Formatted Excel export → Reconciliation workbook: exports workbook
