# skyblueao77/civil-engineering-python architecture

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

- Interactive diagram: https://gitdiagram.com/skyblueao77/civil-engineering-python
- Repository: https://github.com/skyblueao77/civil-engineering-python

## Overview

#### Purpose and Scope
This repository is a Japanese introductory Python curriculum for civil-engineering students. The checked-in content currently contains the Vol.2 basic-syntax lesson; the root documentation describes a broader sequence from environment setup through pandas-based data analysis. Root guidance and curriculum context: `README.md`.

#### Primary Entry Points
Learners enter through the repository guide, then open the lesson notebook in either VS Code/Jupyter or Google Colab. The executable learning artifact is `02_basic_syntax/civil_engineering_python_intro_02.ipynb`; lesson-specific guidance is `02_basic_syntax/README.md`.

#### Learning Delivery Stage
The notebook is the application boundary: it combines explanatory cells, incremental Python execution, and visible outputs. Its content teaches variables, types, arithmetic, branching, loops, and lists using civil-engineering-oriented examples. There is no production service, CLI application, API, or shared library layer. Path: `02_basic_syntax/civil_engineering_python_intro_02.ipynb`.

#### Environment Reproducibility
Each lesson directory is intended to own its isolated Python environment. `uv sync` resolves and provisions the environment from project metadata and a locked dependency graph, ensuring the notebook kernel can use consistent versions. Paths: `02_basic_syntax/pyproject.toml`, `02_basic_syntax/uv.lock`.

#### Execution Flows
Local flow: clone repository → enter lesson directory → `uv sync` → open folder in VS Code → select project interpreter/kernel → run notebook cells sequentially. Browser flow: open the corresponding notebook through Google Colab and execute without local environment setup. The notebook is stateful: later cells may depend on variables and outputs established in earlier cells. Paths: `README.md`, `02_basic_syntax/civil_engineering_python_intro_02.ipynb`.

#### Runtime and External Boundaries
The primary runtime is Python 3.13, managed by uv, with Jupyter Notebook execution supplied through VS Code locally or Google Colab remotely. Git/GitHub distributes source material. Qiita hosts companion narrative articles but is not a runtime dependency. The current tree does not include datasets, backend infrastructure, databases, deployment artifacts, or external APIs. Paths: `02_basic_syntax/pyproject.toml`, `README.md`.

#### Extension Model
The repository is organized as independently runnable numbered lesson modules. Future modules are expected to introduce pandas, CSV ingestion, visualization, numerical computing, and GIS, while preserving the per-lesson notebook plus environment-definition pattern. The present material should be extended by adding a new lesson directory rather than coupling logic into the basic-syntax notebook. Paths: `02_basic_syntax/`, `README.md`.

Main entry points: [`02_basic_syntax/civil_engineering_python_intro_02.ipynb`](https://github.com/skyblueao77/civil-engineering-python/blob/main/02_basic_syntax/civil_engineering_python_intro_02.ipynb) (Basic Syntax Notebook), [`README.md`](https://github.com/skyblueao77/civil-engineering-python/blob/main/README.md) (Curriculum Guide), [`02_basic_syntax/pyproject.toml`](https://github.com/skyblueao77/civil-engineering-python/blob/main/02_basic_syntax/pyproject.toml) (Project Metadata), [`02_basic_syntax/uv.lock`](https://github.com/skyblueao77/civil-engineering-python/blob/main/02_basic_syntax/uv.lock) (Locked Dependencies)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_repository["Curriculum Repository"]
  node_github{{"Git/GitHub<br/>distribution"}}
  node_root_readme["Curriculum Guide<br/>documentation<br/>[README.md]"]
  node_qiita["Qiita Articles<br/>companion content"]
end

subgraph group_lesson["Vol.2 Lesson Module"]
  node_lesson_module["Numbered Lesson Pattern<br/>module boundary"]
  node_lesson_readme["Lesson Guide<br/>documentation<br/>[README.md]"]
  node_notebook["Basic Syntax Notebook<br/>Jupyter notebook"]
  node_lesson_cells["Teaching Cells<br/>notebook layer"]
  node_visible_outputs["Visible Outputs<br/>learning feedback"]
  node_project_metadata["Project Metadata<br/>Python project definition<br/>[pyproject.toml]"]
  node_lockfile["Locked Dependencies<br/>dependency lock<br/>[uv.lock]"]
end

subgraph group_runtime["Execution Environments"]
  node_uv{{"uv Sync<br/>environment manager"}}
  node_vscode_jupyter["VS Code / Jupyter<br/>local notebook host"]
  node_colab["Google Colab<br/>browser notebook host"]
end

node_github -->|"distributes"| node_root_readme
node_root_readme -->|"directs learners to"| node_lesson_module
node_lesson_module -->|"contains"| node_lesson_readme
node_lesson_module -->|"contains"| node_notebook
node_notebook -->|"contains"| node_lesson_cells
node_lesson_cells -->|"produces"| node_visible_outputs
node_project_metadata -->|"defines environment for"| node_uv
node_lockfile -->|"pins dependencies for"| node_uv
node_uv -->|"provides project kernel to"| node_vscode_jupyter
node_vscode_jupyter -->|"executes locally"| node_notebook
node_colab -->|"executes in browser"| node_notebook
node_root_readme -.->|"links companion context"| node_qiita

click node_root_readme "https://github.com/skyblueao77/civil-engineering-python/blob/main/README.md"
click node_lesson_readme "https://github.com/skyblueao77/civil-engineering-python/blob/main/02_basic_syntax/README.md"
click node_notebook "https://github.com/skyblueao77/civil-engineering-python/blob/main/02_basic_syntax/civil_engineering_python_intro_02.ipynb"
click node_project_metadata "https://github.com/skyblueao77/civil-engineering-python/blob/main/02_basic_syntax/pyproject.toml"
click node_lockfile "https://github.com/skyblueao77/civil-engineering-python/blob/main/02_basic_syntax/uv.lock"

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_github,node_root_readme,node_qiita toneBlue
class node_lesson_module,node_lesson_readme,node_notebook,node_lesson_cells,node_visible_outputs,node_project_metadata,node_lockfile toneAmber
class node_uv,node_vscode_jupyter,node_colab toneMint
```

## Components

### Curriculum Repository

Japanese civil-engineering Python learning materials.

- **Git/GitHub**: distribution · Distributes the checked-in curriculum.
- [Curriculum Guide](https://github.com/skyblueao77/civil-engineering-python/blob/main/README.md): documentation · Maps the broader learning sequence and setup guidance. · `README.md`
- **Qiita Articles**: companion content · Hosts narrative companion articles; not a runtime dependency.

### Vol.2 Lesson Module

Independently runnable basic-syntax lesson.

- **Numbered Lesson Pattern**: module boundary · New topics are added as separate lesson directories.
- [Lesson Guide](https://github.com/skyblueao77/civil-engineering-python/blob/main/02_basic_syntax/README.md): documentation · `02_basic_syntax/README.md`
- [Basic Syntax Notebook](https://github.com/skyblueao77/civil-engineering-python/blob/main/02_basic_syntax/civil_engineering_python_intro_02.ipynb): Jupyter notebook · Stateful executable learning artifact for Vol.2. · `02_basic_syntax/civil_engineering_python_intro_02.ipynb`
- **Teaching Cells**: notebook layer · Explanations and sequential civil-engineering Python exercises.
- **Visible Outputs**: learning feedback · Later cells may depend on earlier state and results.
- [Project Metadata](https://github.com/skyblueao77/civil-engineering-python/blob/main/02_basic_syntax/pyproject.toml): Python project definition · Declares the Python 3.13 lesson environment. · `02_basic_syntax/pyproject.toml`
- [Locked Dependencies](https://github.com/skyblueao77/civil-engineering-python/blob/main/02_basic_syntax/uv.lock): dependency lock · `02_basic_syntax/uv.lock`

### Execution Environments

- **uv Sync**: environment manager · Resolves and provisions the isolated lesson environment.
- **VS Code / Jupyter**: local notebook host · Runs the notebook with the project interpreter and kernel.
- **Google Colab**: browser notebook host · Executes the notebook without local environment setup.

## Connections

- Git/GitHub → Curriculum Guide: distributes
- Curriculum Guide → Numbered Lesson Pattern: directs learners to
- Numbered Lesson Pattern → Lesson Guide: contains
- Numbered Lesson Pattern → Basic Syntax Notebook: contains
- Basic Syntax Notebook → Teaching Cells: contains
- Teaching Cells → Visible Outputs: produces
- Project Metadata → uv Sync: defines environment for
- Locked Dependencies → uv Sync: pins dependencies for
- uv Sync → VS Code / Jupyter: provides project kernel to
- VS Code / Jupyter → Basic Syntax Notebook: executes locally
- Google Colab → Basic Syntax Notebook: executes in browser
- Curriculum Guide → Qiita Articles: links companion context
