# pavankalyanreddypk399/weather-etl-pipeline architecture

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

- Interactive diagram: https://gitdiagram.com/pavankalyanreddypk399/weather-etl-pipeline
- Repository: https://github.com/pavankalyanreddypk399/weather-etl-pipeline

## Overview

This is a small Python batch weather ETL pipeline. Running `pipeline.py` selects three cities, fetches hourly weather data for each, transforms each response into a cleaned DataFrame, combines the results, and loads them into PostgreSQL. Extraction uses Open-Meteo; loading replaces the `weather_hourly` table and checks its row count. The README confirms the ETL technologies but documents no scheduler or separate user interface. The graph follows the shown runtime calls; standalone examples in individual modules are omitted.

Main entry points: [`pipeline.py`](https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/pipeline.py) (Pipeline runner), [`extract.py`](https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/extract.py) (Weather extractor), [`load.py`](https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/load.py) (PostgreSQL loader), [`transform.py`](https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/transform.py) (Weather transformer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Orchestration"]
  node_runner["Pipeline runner<br/>[pipeline.py]"]
end

subgraph group_processing["Data processing"]
  node_transformer["Weather transformer<br/>[transform.py]"]
end

subgraph group_integrations["External integrations"]
  node_extractor["Weather extractor<br/>[extract.py]"]
  node_open_meteo["Open-Meteo API"]
  node_loader["PostgreSQL loader<br/>[load.py]"]
  node_postgres[("PostgreSQL database")]
end

node_operator(("Pipeline operator"))

node_operator -->|"runs"| node_runner
node_runner -->|"calls per city"| node_extractor
node_extractor -->|"requests weather"| node_open_meteo
node_open_meteo -->|"returns response"| node_extractor
node_runner -->|"transforms response"| node_transformer
node_runner -->|"loads combined data"| node_loader
node_loader -->|"writes and verifies"| node_postgres

click node_runner "https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/pipeline.py"
click node_extractor "https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/extract.py"
click node_transformer "https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/transform.py"
click node_loader "https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/load.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_runner toneBlue
class node_transformer toneAmber
class node_extractor,node_open_meteo,node_loader,node_postgres toneMint
class node_operator toneIndigo
```

## Components

### Orchestration

- [Pipeline runner](https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/pipeline.py): `pipeline.py`

### Data processing

- [Weather transformer](https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/transform.py): `transform.py`

### External integrations

- [Weather extractor](https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/extract.py): `extract.py`
- **Open-Meteo API**
- [PostgreSQL loader](https://github.com/pavankalyanreddypk399/weather-etl-pipeline/blob/master/load.py): `load.py`
- **PostgreSQL database**

### Other components

- **Pipeline operator**

## Connections

- Pipeline operator → Pipeline runner: runs (evidence: `pipeline.py`)
- Pipeline runner → Weather extractor: calls per city (evidence: `pipeline.py`)
- Weather extractor → Open-Meteo API: requests weather (evidence: `extract.py`)
- Open-Meteo API → Weather extractor: returns response (evidence: `extract.py`)
- Pipeline runner → Weather transformer: transforms response (evidence: `pipeline.py`)
- Pipeline runner → PostgreSQL loader: loads combined data (evidence: `pipeline.py`)
- PostgreSQL loader → PostgreSQL database: writes and verifies (evidence: `load.py`)
