# grotoo/py_md_09 architecture

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

- Interactive diagram: https://gitdiagram.com/grotoo/py_md_09
- Repository: https://github.com/grotoo/py_md_09

## Overview

This repository contains three independent runnable Pydantic validation examples, not a shared application. Each script constructs a domain model from sample data, prints validated fields, and demonstrates a validation error. The mission example additionally validates crew and mission-wide rules. There is no README or shared storage/integration layer; the graph therefore treats each file as its own workflow. Pydantic is an external dependency, and the examples’ exact runtime behavior is limited to the sampled source.

Main entry points: [`ex0/space_station.py`](https://github.com/grotoo/py_md_09/blob/main/ex0/space_station.py) (Station validation), [`ex1/alien_contact.py`](https://github.com/grotoo/py_md_09/blob/main/ex1/alien_contact.py) (Contact validation), [`ex2/space_crew.py`](https://github.com/grotoo/py_md_09/blob/main/ex2/space_crew.py) (Mission validation)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_operator(("Operator"))
node_station["Station validation<br/>[space_station.py]"]
node_contact["Contact validation<br/>[alien_contact.py]"]
node_mission["Mission validation<br/>[space_crew.py]"]

node_operator -->|"runs example"| node_station
node_operator -->|"runs example"| node_contact
node_operator -->|"runs example"| node_mission

click node_station "https://github.com/grotoo/py_md_09/blob/main/ex0/space_station.py"
click node_contact "https://github.com/grotoo/py_md_09/blob/main/ex1/alien_contact.py"
click node_mission "https://github.com/grotoo/py_md_09/blob/main/ex2/space_crew.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_operator toneIndigo
class node_station,node_contact,node_mission toneTeal
```

## Components

### Other components

- **Operator**
- [Station validation](https://github.com/grotoo/py_md_09/blob/main/ex0/space_station.py): `ex0/space_station.py`
- [Contact validation](https://github.com/grotoo/py_md_09/blob/main/ex1/alien_contact.py): `ex1/alien_contact.py`
- [Mission validation](https://github.com/grotoo/py_md_09/blob/main/ex2/space_crew.py): `ex2/space_crew.py`

## Connections

- Operator → Station validation: runs example (evidence: `ex0/space_station.py`)
- Operator → Contact validation: runs example (evidence: `ex1/alien_contact.py`)
- Operator → Mission validation: runs example (evidence: `ex2/space_crew.py`)
