# asl-sunnycai/lcsd-import-template architecture

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

- Interactive diagram: https://gitdiagram.com/asl-sunnycai/lcsd-import-template
- Repository: https://github.com/asl-sunnycai/lcsd-import-template

## Overview

This repository’s product is a Python utility for extracting VBA source from an Excel workbook. The workflow is: an operator runs the exporter, it checks and parses the workbook’s embedded VBA project, then writes module files and an export manifest to the output folder; on reruns, it removes only prior exports listed in that manifest. The README describes this workflow, though its example workbook and module list differ from the files in the tree. The VBA modules are export artifacts, not a documented application workflow.

Main entry points: [`export_vba.py`](https://github.com/asl-sunnycai/lcsd-import-template/blob/main/export_vba.py) (VBA exporter), [`vba_source/_export_manifest.json`](https://github.com/asl-sunnycai/lcsd-import-template/blob/main/vba_source/_export_manifest.json) (Prior manifest), [`excel/Import Template with Macro Part-B v0.15-new [unprotected].xlsm`](https://github.com/asl-sunnycai/lcsd-import-template/blob/main/excel/Import%20Template%20with%20Macro%20Part-B%20v0.15-new%20%5Bunprotected%5D.xlsm) (Excel workbook), [`vba_source`](https://github.com/asl-sunnycai/lcsd-import-template/tree/main/vba_source) (Output folder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_export["VBA export"]
  node_exporter["VBA exporter<br/>[export_vba.py]"]
  node_workbook["Excel workbook"]
  node_oletools["oletools parser"]
  node_output["Output folder"]
  node_old_manifest["Prior manifest"]
  node_modules["VBA modules"]
  node_manifest["Export manifest"]
end

node_operator(("Operator"))

node_operator -->|"runs"| node_exporter
node_exporter -->|"checks and reads"| node_workbook
node_exporter -->|"parses VBA"| node_oletools
node_exporter -->|"creates"| node_output
node_exporter -->|"reads cleanup list"| node_old_manifest
node_exporter -->|"removes listed modules"| node_old_manifest
node_exporter -->|"writes extracted modules"| node_modules
node_exporter -->|"writes mapping"| node_manifest

click node_exporter "https://github.com/asl-sunnycai/lcsd-import-template/blob/main/export_vba.py"
click node_workbook "https://github.com/asl-sunnycai/lcsd-import-template/blob/main/excel/Import%20Template%20with%20Macro%20Part-B%20v0.15-new%20%5Bunprotected%5D.xlsm"
click node_output "https://github.com/asl-sunnycai/lcsd-import-template/tree/main/vba_source"
click node_old_manifest "https://github.com/asl-sunnycai/lcsd-import-template/blob/main/vba_source/_export_manifest.json"
click node_modules "https://github.com/asl-sunnycai/lcsd-import-template/tree/main/vba_source"
click node_manifest "https://github.com/asl-sunnycai/lcsd-import-template/blob/main/vba_source/_export_manifest.json"

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_exporter,node_workbook,node_oletools,node_output,node_old_manifest,node_modules,node_manifest toneBlue
class node_operator toneIndigo
```

## Components

### VBA export

- [VBA exporter](https://github.com/asl-sunnycai/lcsd-import-template/blob/main/export_vba.py): `export_vba.py`
- [Excel workbook](https://github.com/asl-sunnycai/lcsd-import-template/blob/main/excel/Import%20Template%20with%20Macro%20Part-B%20v0.15-new%20%5Bunprotected%5D.xlsm): `excel/Import Template with Macro Part-B v0.15-new [unprotected].xlsm`
- **oletools parser**
- [Output folder](https://github.com/asl-sunnycai/lcsd-import-template/tree/main/vba_source): `vba_source`
- [Prior manifest](https://github.com/asl-sunnycai/lcsd-import-template/blob/main/vba_source/_export_manifest.json): `vba_source/_export_manifest.json`
- [VBA modules](https://github.com/asl-sunnycai/lcsd-import-template/tree/main/vba_source): `vba_source`
- [Export manifest](https://github.com/asl-sunnycai/lcsd-import-template/blob/main/vba_source/_export_manifest.json): `vba_source/_export_manifest.json`

### Other components

- **Operator**

## Connections

- Operator → VBA exporter: runs (evidence: `readme.md`)
- VBA exporter → Excel workbook: checks and reads (evidence: `export_vba.py`)
- VBA exporter → oletools parser: parses VBA (evidence: `export_vba.py`)
- VBA exporter → Output folder: creates (evidence: `export_vba.py`)
- VBA exporter → Prior manifest: reads cleanup list (evidence: `export_vba.py`)
- VBA exporter → Prior manifest: removes listed modules (evidence: `export_vba.py`)
- VBA exporter → VBA modules: writes extracted modules (evidence: `export_vba.py`)
- VBA exporter → Export manifest: writes mapping (evidence: `export_vba.py`)
