# eazybytes/yaml architecture

> Architecture diagram of the GitHub repository eazybytes/yaml, 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/eazybytes/yaml
- Repository: https://github.com/eazybytes/yaml

## Overview

This repository is a YAML learning course organized as runnable examples, not a shared application or library. The learner follows topic-specific YAML samples through Python parsing and inspection; the README also documents real-world configuration examples. Sampled scripts show both PyYAML and ruamel.yaml readers, with parsed values rendered as tables (or printed for long strings). The graph groups the topics by learning stage; several unsampled topic implementations are represented by their exact enclosing directories. Edges rely on the README or shown script behavior, not inferred calls between examples.

Main entry points: [`01_sample_yaml_file`](https://github.com/eazybytes/yaml/tree/main/01_sample_yaml_file) (Intro examples), [`01_sample_yaml_file/sample_ruamel.py`](https://github.com/eazybytes/yaml/blob/main/01_sample_yaml_file/sample_ruamel.py) (Python readers), [`00_real_yaml_files`](https://github.com/eazybytes/yaml/tree/main/00_real_yaml_files) (Real configs), [`02_scalars`](https://github.com/eazybytes/yaml/tree/main/02_scalars) (Scalars)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intro["Getting started"]
  node_intro_examples["Intro examples"]
  node_real_configs["Real configs"]
  node_python_readers["Python readers<br/>[sample_ruamel.py]"]
  node_table_output["Table display<br/>[sample_ruamel.py]"]
end

subgraph group_values["YAML features"]
  node_scalars["Scalars"]
  node_long_strings["Long strings"]
  node_comments["Comments"]
  node_timestamps["Timestamps"]
  node_tags["Tags"]
end

subgraph group_structure["Document structure"]
  node_collections["Collections"]
  node_complex_keys["Complex keys"]
  node_anchors_aliases["Anchors and aliases"]
  node_overrides["Overrides"]
  node_multi_docs["Multi-documents"]
end

node_learner(("Learner"))

node_learner -->|"studies"| node_intro_examples
node_learner -->|"studies"| node_real_configs
node_learner -->|"studies"| node_scalars
node_learner -->|"studies"| node_long_strings
node_learner -->|"studies"| node_comments
node_learner -->|"studies"| node_timestamps
node_learner -->|"studies"| node_tags
node_learner -->|"studies"| node_collections
node_learner -->|"studies"| node_complex_keys
node_learner -->|"studies"| node_anchors_aliases
node_learner -->|"studies"| node_overrides
node_learner -->|"studies"| node_multi_docs
node_intro_examples -->|"parsed by"| node_python_readers
node_python_readers -->|"renders as"| node_table_output

click node_intro_examples "https://github.com/eazybytes/yaml/tree/main/01_sample_yaml_file"
click node_real_configs "https://github.com/eazybytes/yaml/tree/main/00_real_yaml_files"
click node_python_readers "https://github.com/eazybytes/yaml/blob/main/01_sample_yaml_file/sample_ruamel.py"
click node_table_output "https://github.com/eazybytes/yaml/blob/main/01_sample_yaml_file/sample_ruamel.py"
click node_scalars "https://github.com/eazybytes/yaml/tree/main/02_scalars"
click node_long_strings "https://github.com/eazybytes/yaml/tree/main/03_long_strings"
click node_comments "https://github.com/eazybytes/yaml/tree/main/04_comments"
click node_timestamps "https://github.com/eazybytes/yaml/tree/main/05_timestamps"
click node_tags "https://github.com/eazybytes/yaml/tree/main/06_tags"
click node_collections "https://github.com/eazybytes/yaml/tree/main/07_collections"
click node_complex_keys "https://github.com/eazybytes/yaml/tree/main/08_complex_keys"
click node_anchors_aliases "https://github.com/eazybytes/yaml/tree/main/09_anchors_alias"
click node_overrides "https://github.com/eazybytes/yaml/tree/main/10_override"
click node_multi_docs "https://github.com/eazybytes/yaml/tree/main/11_multi_document"

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_intro_examples,node_real_configs,node_python_readers,node_table_output toneBlue
class node_scalars,node_long_strings,node_comments,node_timestamps,node_tags toneAmber
class node_collections,node_complex_keys,node_anchors_aliases,node_overrides,node_multi_docs toneMint
class node_learner toneIndigo
```

## Components

### Getting started

- [Intro examples](https://github.com/eazybytes/yaml/tree/main/01_sample_yaml_file): `01_sample_yaml_file`
- [Real configs](https://github.com/eazybytes/yaml/tree/main/00_real_yaml_files): `00_real_yaml_files`
- [Python readers](https://github.com/eazybytes/yaml/blob/main/01_sample_yaml_file/sample_ruamel.py): `01_sample_yaml_file/sample_ruamel.py`
- [Table display](https://github.com/eazybytes/yaml/blob/main/01_sample_yaml_file/sample_ruamel.py): `01_sample_yaml_file/sample_ruamel.py`

### YAML features

- [Scalars](https://github.com/eazybytes/yaml/tree/main/02_scalars): `02_scalars`
- [Long strings](https://github.com/eazybytes/yaml/tree/main/03_long_strings): `03_long_strings`
- [Comments](https://github.com/eazybytes/yaml/tree/main/04_comments): `04_comments`
- [Timestamps](https://github.com/eazybytes/yaml/tree/main/05_timestamps): `05_timestamps`
- [Tags](https://github.com/eazybytes/yaml/tree/main/06_tags): `06_tags`

### Document structure

- [Collections](https://github.com/eazybytes/yaml/tree/main/07_collections): `07_collections`
- [Complex keys](https://github.com/eazybytes/yaml/tree/main/08_complex_keys): `08_complex_keys`
- [Anchors and aliases](https://github.com/eazybytes/yaml/tree/main/09_anchors_alias): `09_anchors_alias`
- [Overrides](https://github.com/eazybytes/yaml/tree/main/10_override): `10_override`
- [Multi-documents](https://github.com/eazybytes/yaml/tree/main/11_multi_document): `11_multi_document`

### Other components

- **Learner**

## Connections

- Learner → Intro examples: studies (evidence: `README.md`)
- Learner → Real configs: studies (evidence: `README.md`)
- Learner → Scalars: studies (evidence: `README.md`)
- Learner → Long strings: studies (evidence: `README.md`)
- Learner → Comments: studies (evidence: `README.md`)
- Learner → Timestamps: studies (evidence: `README.md`)
- Learner → Tags: studies (evidence: `README.md`)
- Learner → Collections: studies (evidence: `README.md`)
- Learner → Complex keys: studies (evidence: `README.md`)
- Learner → Anchors and aliases: studies (evidence: `README.md`)
- Learner → Overrides: studies (evidence: `README.md`)
- Learner → Multi-documents: studies (evidence: `README.md`)
- Intro examples → Python readers: parsed by (evidence: `01_sample_yaml_file/sample_ruamel.py`)
- Python readers → Table display: renders as (evidence: `01_sample_yaml_file/sample_ruamel.py`)
