# yagohehe/practica_08_airquality architecture

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

- Interactive diagram: https://gitdiagram.com/yagohehe/practica_08_airquality
- Repository: https://github.com/yagohehe/practica_08_airquality

## Overview

This small script fetches sensor measurements from OpenAQ, normalizes the response and converts its timestamps, then appends the resulting rows to a local CSV file. The script entry point invokes the extraction-and-transformation function and handles file creation or append. The README provides no additional product capabilities; the workflow file is not included because its contents were not provided.

Main entry points: [`src/pipeline.py`](https://github.com/yagohehe/practica_08_airquality/blob/main/src/pipeline.py) (Extract and transform), [`data/air_data.csv`](https://github.com/yagohehe/practica_08_airquality/blob/main/data/air_data.csv) (Air data CSV)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_runner["Script entry<br/>[pipeline.py]"]
node_openaq["OpenAQ API"]
node_etl["Extract and transform<br/>[pipeline.py]"]
node_csv["Air data CSV<br/>[air_data.csv]"]

node_runner -->|"calls"| node_etl
node_etl -->|"requests measurements"| node_openaq
node_etl -->|"writes rows"| node_csv

click node_runner "https://github.com/yagohehe/practica_08_airquality/blob/main/src/pipeline.py"
click node_etl "https://github.com/yagohehe/practica_08_airquality/blob/main/src/pipeline.py"
click node_csv "https://github.com/yagohehe/practica_08_airquality/blob/main/data/air_data.csv"

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_runner,node_etl,node_csv toneTeal
class node_openaq toneMint
```

## Components

### Other components

- [Script entry](https://github.com/yagohehe/practica_08_airquality/blob/main/src/pipeline.py): `src/pipeline.py`
- **OpenAQ API**
- [Extract and transform](https://github.com/yagohehe/practica_08_airquality/blob/main/src/pipeline.py): `src/pipeline.py`
- [Air data CSV](https://github.com/yagohehe/practica_08_airquality/blob/main/data/air_data.csv): `data/air_data.csv`

## Connections

- Script entry → Extract and transform: calls (evidence: `src/pipeline.py`)
- Extract and transform → OpenAQ API: requests measurements (evidence: `src/pipeline.py`)
- Extract and transform → Air data CSV: writes rows (evidence: `src/pipeline.py`)
