# verb0448/honnangong architecture

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

- Interactive diagram: https://gitdiagram.com/verb0448/honnangong
- Repository: https://github.com/verb0448/honnangong

## Overview

This repository is a set of hands-on Python book examples, not one integrated application. Its user workflow is to choose a chapter, run its scripts, and inspect generated files or interactive results. The examples range from local file analysis and image processing to web-data collection, visualization, and document generation. The graph groups these independent projects by topic; cited edges show only relationships evidenced by the excerpts, source index, or README. Many chapter implementations were not sampled, so their internal links are omitted.

Main entry points: [`ch_01/step_2_4.py`](https://github.com/verb0448/honnangong/blob/main/ch_01/step_2_4.py) (Directory Sizing), [`ch_01/step_2_2.py`](https://github.com/verb0448/honnangong/blob/main/ch_01/step_2_2.py) (File Size Scan), [`ch_01/step_2_3.py`](https://github.com/verb0448/honnangong/blob/main/ch_01/step_2_3.py) (Directory Listing), [`ch_01/step_3_1.py`](https://github.com/verb0448/honnangong/blob/main/ch_01/step_3_1.py) (Plot Data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_local["Local Data Projects"]
  node_ch1_setup["Output Setup<br/>[step_2_1.py]"]
  node_ch1_size["File Size Scan<br/>[step_2_2.py]"]
  node_ch1_dirs["Directory Listing<br/>[step_2_3.py]"]
  node_ch1_total["Directory Sizing<br/>[step_2_4.py]"]
  node_ch1_plotdata["Plot Data<br/>[step_3_1.py]"]
  node_ch1_plot["Size Chart<br/>[step_3_2.py]"]
  node_ch2["Chapter 2 Examples"]
  node_ch3["Chapter 3 Examples"]
end

subgraph group_media["Media Processing"]
  node_qr["QR Contact Sharing"]
  node_ocr["Image Text Translation"]
  node_paddleocr["PaddleOCR Variant"]
end

subgraph group_webdata["Web Data Analysis"]
  node_shopping["Shopping Trends"]
  node_market["Market Analysis"]
  node_keywords["Keyword Competition<br/>[step_3_1.py]"]
  node_ch9["Chapter 9 Examples"]
end

subgraph group_reports["Automation And Reports"]
  node_deposits["Deposit Report<br/>[step_3_4.py]"]
  node_ch11["Chapter 11 Examples"]
end

node_learner(("Learner"))

node_learner -->|"runs"| node_ch1_size
node_ch1_size -->|"uses paths"| node_ch1_setup
node_ch1_dirs -->|"uses output"| node_ch1_setup
node_ch1_total -->|"loads directories"| node_ch1_dirs
node_ch1_total -->|"measures files"| node_ch1_size
node_ch1_plotdata -->|"loads sizes"| node_ch1_total
node_ch1_plot -->|"loads plot data"| node_ch1_plotdata
node_learner -->|"runs examples"| node_qr
node_learner -->|"runs examples"| node_ocr
node_learner -->|"chooses variant"| node_paddleocr
node_learner -->|"runs examples"| node_shopping
node_learner -->|"runs examples"| node_market
node_learner -->|"submits keywords"| node_keywords
node_learner -->|"runs report"| node_deposits

click node_ch1_setup "https://github.com/verb0448/honnangong/blob/main/ch_01/step_2_1.py"
click node_ch1_size "https://github.com/verb0448/honnangong/blob/main/ch_01/step_2_2.py"
click node_ch1_dirs "https://github.com/verb0448/honnangong/blob/main/ch_01/step_2_3.py"
click node_ch1_total "https://github.com/verb0448/honnangong/blob/main/ch_01/step_2_4.py"
click node_ch1_plotdata "https://github.com/verb0448/honnangong/blob/main/ch_01/step_3_1.py"
click node_ch1_plot "https://github.com/verb0448/honnangong/blob/main/ch_01/step_3_2.py"
click node_ch2 "https://github.com/verb0448/honnangong/tree/main/ch_02"
click node_ch3 "https://github.com/verb0448/honnangong/tree/main/ch_03"
click node_qr "https://github.com/verb0448/honnangong/tree/main/ch_04"
click node_ocr "https://github.com/verb0448/honnangong/tree/main/ch_05"
click node_paddleocr "https://github.com/verb0448/honnangong/tree/main/ch_05_paddleocr"
click node_shopping "https://github.com/verb0448/honnangong/tree/main/ch_06"
click node_market "https://github.com/verb0448/honnangong/tree/main/ch_07"
click node_keywords "https://github.com/verb0448/honnangong/blob/main/ch_08/step_3_1.py"
click node_ch9 "https://github.com/verb0448/honnangong/tree/main/ch_09"
click node_deposits "https://github.com/verb0448/honnangong/blob/main/ch_10/step_3_4.py"
click node_ch11 "https://github.com/verb0448/honnangong/tree/main/ch_11"

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_ch1_setup,node_ch1_size,node_ch1_dirs,node_ch1_total,node_ch1_plotdata,node_ch1_plot,node_ch2,node_ch3 toneBlue
class node_qr,node_ocr,node_paddleocr toneAmber
class node_shopping,node_market,node_keywords,node_ch9 toneMint
class node_deposits,node_ch11 toneRose
class node_learner toneIndigo
```

## Components

### Local Data Projects

- [Output Setup](https://github.com/verb0448/honnangong/blob/main/ch_01/step_2_1.py): `ch_01/step_2_1.py`
- [File Size Scan](https://github.com/verb0448/honnangong/blob/main/ch_01/step_2_2.py): `ch_01/step_2_2.py`
- [Directory Listing](https://github.com/verb0448/honnangong/blob/main/ch_01/step_2_3.py): `ch_01/step_2_3.py`
- [Directory Sizing](https://github.com/verb0448/honnangong/blob/main/ch_01/step_2_4.py): `ch_01/step_2_4.py`
- [Plot Data](https://github.com/verb0448/honnangong/blob/main/ch_01/step_3_1.py): `ch_01/step_3_1.py`
- [Size Chart](https://github.com/verb0448/honnangong/blob/main/ch_01/step_3_2.py): `ch_01/step_3_2.py`
- [Chapter 2 Examples](https://github.com/verb0448/honnangong/tree/main/ch_02): `ch_02`
- [Chapter 3 Examples](https://github.com/verb0448/honnangong/tree/main/ch_03): `ch_03`

### Media Processing

- [QR Contact Sharing](https://github.com/verb0448/honnangong/tree/main/ch_04): `ch_04`
- [Image Text Translation](https://github.com/verb0448/honnangong/tree/main/ch_05): `ch_05`
- [PaddleOCR Variant](https://github.com/verb0448/honnangong/tree/main/ch_05_paddleocr): `ch_05_paddleocr`

### Web Data Analysis

- [Shopping Trends](https://github.com/verb0448/honnangong/tree/main/ch_06): `ch_06`
- [Market Analysis](https://github.com/verb0448/honnangong/tree/main/ch_07): `ch_07`
- [Keyword Competition](https://github.com/verb0448/honnangong/blob/main/ch_08/step_3_1.py): `ch_08/step_3_1.py`
- [Chapter 9 Examples](https://github.com/verb0448/honnangong/tree/main/ch_09): `ch_09`

### Automation And Reports

- [Deposit Report](https://github.com/verb0448/honnangong/blob/main/ch_10/step_3_4.py): `ch_10/step_3_4.py`
- [Chapter 11 Examples](https://github.com/verb0448/honnangong/tree/main/ch_11): `ch_11`

### Other components

- **Learner**

## Connections

- Learner → File Size Scan: runs (evidence: `README.md`)
- File Size Scan → Output Setup: uses paths (evidence: `ch_01/step_2_2.py`)
- Directory Listing → Output Setup: uses output (evidence: `ch_01/step_2_3.py`)
- Directory Sizing → Directory Listing: loads directories (evidence: `ch_01/step_2_4.py`)
- Directory Sizing → File Size Scan: measures files (evidence: `ch_01/step_2_4.py`)
- Plot Data → Directory Sizing: loads sizes (evidence: `ch_01/step_3_1.py`)
- Size Chart → Plot Data: loads plot data (evidence: `ch_01/step_3_2.py`)
- Learner → QR Contact Sharing: runs examples (evidence: `README.md`)
- Learner → Image Text Translation: runs examples (evidence: `README.md`)
- Learner → PaddleOCR Variant: chooses variant (evidence: `README.md`)
- Learner → Shopping Trends: runs examples (evidence: `README.md`)
- Learner → Market Analysis: runs examples (evidence: `README.md`)
- Learner → Keyword Competition: submits keywords (evidence: `ch_08/step_3_1.py`)
- Learner → Deposit Report: runs report (evidence: `ch_10/step_3_4.py`)
