# suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu architecture

> Architecture diagram of the GitHub repository suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu, 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/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu
- Repository: https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu

## Overview

This repository is a collection of five data-pipeline projects: Netflix analytics, weather reporting, interview-panel analytics, stock-trade ingestion, and Zomato analytics. Their common shape is raw-data ingestion followed by warehouse transformation and analytical outputs, but the supplied excerpts expose only some runtime connections. The graph preserves the major domain stages and capabilities visible in the tree; edges are limited to relationships shown in excerpts, with unsampled model dependencies left unconnected.

Main entry points: [`zomato-pipeline/zomato/models/mart/restaurant_rating.py`](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/zomato-pipeline/zomato/models/mart/restaurant_rating.py) (Restaurant scoring), [`zomato-pipeline/zomato/models/mart`](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/zomato-pipeline/zomato/models/mart) (Restaurant analytics), [`Netflix-data-pipeline/snowpark Transformation Scripts/weighted_ratings.py`](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Netflix-data-pipeline/snowpark%20Transformation%20Scripts/weighted_ratings.py) (Weighted ratings), [`Weather-data-pipeline/airflow/dags/snowflake_data_insert.py`](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/airflow/dags/snowflake_data_insert.py) (Weather warehouse load)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_netflix["Netflix analytics"]
  node_netflix_source[("Netflix raw tables")]
  node_netflix_bronze["Bronze models"]
  node_netflix_stage["Staging models"]
  node_netflix_marts["Analytics marts"]
  node_recommendations["Movie recommendations"]
  node_weighted_ratings["Weighted ratings"]
  node_hidden_gems["Hidden gems"]
  node_movie_insights["Movie insights"]
end

subgraph group_weather["Weather analytics"]
  node_weather_ingest["Weather extraction<br/>[data_extract.py]"]
  node_weather_load["Weather warehouse load"]
  node_weather_raw[("Raw weather table")]
  node_weather_bronze["Bronze weather"]
  node_weather_stage["Staged weather"]
  node_weather_fact["Observation facts"]
  node_weather_metrics["Weather metrics"]
  node_weather_comfort["Comfort scores"]
  node_weather_date["Daily observations"]
  node_weather_airflow["Scheduled dbt build"]
end

subgraph group_interview["Interview analytics"]
  node_interview_raw[("Panel source tables")]
  node_interview_stage["Panel staging"]
  node_interview_marts["Panel analytics"]
end

subgraph group_stock["Stock ingestion"]
  node_stock_producer["Trade producer"]
  node_kafka["Kafka trade topic"]
  node_stock_consumer["Trade consumer"]
  node_stock_raw[("Raw stock trades")]
  node_stock_stage["Stock staging"]
  node_stock_marts["Stock marts"]
end

subgraph group_zomato["Restaurant analytics"]
  node_restaurant_files["Restaurant CSV data"]
  node_zomato_stage["Restaurant staging"]
  node_zomato_marts["Restaurant analytics"]
  node_restaurant_rating["Restaurant scoring"]
  node_zomato_schedule["Scheduled dbt run<br/>[dbt_pipeline.py]"]
end

node_weather_api(("Weather API"))
node_finnhub(("Finnhub feed"))

node_recommendations -->|"reads ratings and movies"| node_netflix_stage
node_weighted_ratings -->|"reads ratings"| node_netflix_source
node_weighted_ratings -->|"writes weighted results"| node_netflix_marts
node_hidden_gems -->|"queries movie data"| node_netflix_source
node_weather_ingest -->|"requests observations"| node_weather_api
node_weather_load -->|"fetches weather"| node_weather_api
node_weather_load -->|"inserts payload"| node_weather_raw
node_weather_airflow -->|"runs dbt build"| node_weather_stage
node_weather_metrics -->|"reads observations"| node_weather_fact
node_weather_comfort -->|"reads observations"| node_weather_fact
node_stock_producer -->|"subscribes to trades"| node_finnhub
node_stock_producer -->|"publishes trades"| node_kafka
node_stock_consumer -->|"consumes trades"| node_kafka
node_stock_consumer -->|"inserts raw payload"| node_stock_raw
node_restaurant_rating -->|"builds score model"| node_zomato_marts
node_restaurant_rating -->|"reads review and menu"| node_zomato_stage
node_restaurant_rating -->|"reads customer and restaurant models"| node_zomato_marts
node_zomato_schedule -->|"runs dbt"| node_zomato_marts

click node_netflix_source "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Netflix-data-pipeline/snowflakescripts"
click node_netflix_bronze "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Netflix-data-pipeline/netflix_dbt/models/Bronze"
click node_netflix_stage "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Netflix-data-pipeline/netflix_dbt/models/Staging"
click node_netflix_marts "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Netflix-data-pipeline/netflix_dbt/models/Mart"
click node_recommendations "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Netflix-data-pipeline/netflix_dbt/models/Mart/movie_recommendation.py"
click node_weighted_ratings "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Netflix-data-pipeline/snowpark%20Transformation%20Scripts/weighted_ratings.py"
click node_hidden_gems "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Netflix-data-pipeline/snowpark%20Transformation%20Scripts/proc_hidden_gems.py"
click node_movie_insights "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Netflix-data-pipeline/snowpark%20Transformation%20Scripts"
click node_weather_ingest "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/airflow/dags/data_extract.py"
click node_weather_load "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/airflow/dags/snowflake_data_insert.py"
click node_weather_raw "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Weather-data-pipeline/snowflake_scripts"
click node_weather_bronze "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Weather-data-pipeline/weather_data/models/Bronze"
click node_weather_stage "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Weather-data-pipeline/weather_data/models/Staging"
click node_weather_fact "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/weather_data/models/Mart/fct_weather_observations.sql"
click node_weather_metrics "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/weather_data/models/Mart/mart_daily_city_metrics.py"
click node_weather_comfort "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/weather_data/models/Mart/weather_comfort_scores.py"
click node_weather_date "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/weather_data/models/Mart/date_wise_observation.py"
click node_weather_airflow "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/airflow/dags/weather_data_pipeline_v2.py"
click node_interview_raw "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/interview-data-analysis/interview_dbt/models/Bronze"
click node_interview_stage "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/interview-data-analysis/interview_dbt/models/Stage"
click node_interview_marts "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/interview-data-analysis/interview_dbt/models/Mart"
click node_stock_producer "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/stock-data-pipeline/kafka_producer_client.py"
click node_stock_consumer "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/stock-data-pipeline/snowflake-connect.py"
click node_stock_raw "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/stock-data-pipeline/stock-dbt/stock_dbt/models/Bronze"
click node_stock_stage "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/stock-data-pipeline/stock-dbt/stock_dbt/models/Staging"
click node_stock_marts "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/stock-data-pipeline/stock-dbt/stock_dbt/models/Mart"
click node_restaurant_files "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/zomato-pipeline/csv%20files"
click node_zomato_stage "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/zomato-pipeline/zomato/models/staging"
click node_zomato_marts "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/zomato-pipeline/zomato/models/mart"
click node_restaurant_rating "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/zomato-pipeline/zomato/models/mart/restaurant_rating.py"
click node_zomato_schedule "https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/zomato-pipeline/airflow/dags/dbt_pipeline.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_netflix_source,node_netflix_bronze,node_netflix_stage,node_netflix_marts,node_recommendations,node_weighted_ratings,node_hidden_gems,node_movie_insights toneBlue
class node_weather_ingest,node_weather_load,node_weather_raw,node_weather_bronze,node_weather_stage,node_weather_fact,node_weather_metrics,node_weather_comfort,node_weather_date,node_weather_airflow toneAmber
class node_interview_raw,node_interview_stage,node_interview_marts,node_weather_api toneMint
class node_stock_producer,node_kafka,node_stock_consumer,node_stock_raw,node_stock_stage,node_stock_marts toneRose
class node_restaurant_files,node_zomato_stage,node_zomato_marts,node_restaurant_rating,node_zomato_schedule,node_finnhub toneIndigo
```

## Components

### Netflix analytics

- [Netflix raw tables](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Netflix-data-pipeline/snowflakescripts): `Netflix-data-pipeline/snowflakescripts`
- [Bronze models](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Netflix-data-pipeline/netflix_dbt/models/Bronze): `Netflix-data-pipeline/netflix_dbt/models/Bronze`
- [Staging models](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Netflix-data-pipeline/netflix_dbt/models/Staging): `Netflix-data-pipeline/netflix_dbt/models/Staging`
- [Analytics marts](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Netflix-data-pipeline/netflix_dbt/models/Mart): `Netflix-data-pipeline/netflix_dbt/models/Mart`
- [Movie recommendations](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Netflix-data-pipeline/netflix_dbt/models/Mart/movie_recommendation.py): `Netflix-data-pipeline/netflix_dbt/models/Mart/movie_recommendation.py`
- [Weighted ratings](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Netflix-data-pipeline/snowpark%20Transformation%20Scripts/weighted_ratings.py): `Netflix-data-pipeline/snowpark Transformation Scripts/weighted_ratings.py`
- [Hidden gems](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Netflix-data-pipeline/snowpark%20Transformation%20Scripts/proc_hidden_gems.py): `Netflix-data-pipeline/snowpark Transformation Scripts/proc_hidden_gems.py`
- [Movie insights](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Netflix-data-pipeline/snowpark%20Transformation%20Scripts): `Netflix-data-pipeline/snowpark Transformation Scripts`

### Weather analytics

- [Weather extraction](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/airflow/dags/data_extract.py): `Weather-data-pipeline/airflow/dags/data_extract.py`
- [Weather warehouse load](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/airflow/dags/snowflake_data_insert.py): `Weather-data-pipeline/airflow/dags/snowflake_data_insert.py`
- [Raw weather table](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Weather-data-pipeline/snowflake_scripts): `Weather-data-pipeline/snowflake_scripts`
- [Bronze weather](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Weather-data-pipeline/weather_data/models/Bronze): `Weather-data-pipeline/weather_data/models/Bronze`
- [Staged weather](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/Weather-data-pipeline/weather_data/models/Staging): `Weather-data-pipeline/weather_data/models/Staging`
- [Observation facts](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/weather_data/models/Mart/fct_weather_observations.sql): `Weather-data-pipeline/weather_data/models/Mart/fct_weather_observations.sql`
- [Weather metrics](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/weather_data/models/Mart/mart_daily_city_metrics.py): `Weather-data-pipeline/weather_data/models/Mart/mart_daily_city_metrics.py`
- [Comfort scores](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/weather_data/models/Mart/weather_comfort_scores.py): `Weather-data-pipeline/weather_data/models/Mart/weather_comfort_scores.py`
- [Daily observations](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/weather_data/models/Mart/date_wise_observation.py): `Weather-data-pipeline/weather_data/models/Mart/date_wise_observation.py`
- [Scheduled dbt build](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/Weather-data-pipeline/airflow/dags/weather_data_pipeline_v2.py): `Weather-data-pipeline/airflow/dags/weather_data_pipeline_v2.py`

### Interview analytics

- [Panel source tables](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/interview-data-analysis/interview_dbt/models/Bronze): `interview-data-analysis/interview_dbt/models/Bronze`
- [Panel staging](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/interview-data-analysis/interview_dbt/models/Stage): `interview-data-analysis/interview_dbt/models/Stage`
- [Panel analytics](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/interview-data-analysis/interview_dbt/models/Mart): `interview-data-analysis/interview_dbt/models/Mart`

### Stock ingestion

- [Trade producer](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/stock-data-pipeline/kafka_producer_client.py): `stock-data-pipeline/kafka_producer_client.py`
- **Kafka trade topic**
- [Trade consumer](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/stock-data-pipeline/snowflake-connect.py): `stock-data-pipeline/snowflake-connect.py`
- [Raw stock trades](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/stock-data-pipeline/stock-dbt/stock_dbt/models/Bronze): `stock-data-pipeline/stock-dbt/stock_dbt/models/Bronze`
- [Stock staging](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/stock-data-pipeline/stock-dbt/stock_dbt/models/Staging): `stock-data-pipeline/stock-dbt/stock_dbt/models/Staging`
- [Stock marts](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/stock-data-pipeline/stock-dbt/stock_dbt/models/Mart): `stock-data-pipeline/stock-dbt/stock_dbt/models/Mart`

### Restaurant analytics

- [Restaurant CSV data](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/zomato-pipeline/csv%20files): `zomato-pipeline/csv files`
- [Restaurant staging](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/zomato-pipeline/zomato/models/staging): `zomato-pipeline/zomato/models/staging`
- [Restaurant analytics](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/tree/main/zomato-pipeline/zomato/models/mart): `zomato-pipeline/zomato/models/mart`
- [Restaurant scoring](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/zomato-pipeline/zomato/models/mart/restaurant_rating.py): `zomato-pipeline/zomato/models/mart/restaurant_rating.py`
- [Scheduled dbt run](https://github.com/suvendusahani145-wq/snowflake-snowpark-dbt-lab-suvendu/blob/main/zomato-pipeline/airflow/dags/dbt_pipeline.py): `zomato-pipeline/airflow/dags/dbt_pipeline.py`

### Other components

- **Weather API**
- **Finnhub feed**

## Connections

- Movie recommendations → Staging models: reads ratings and movies (evidence: `Netflix-data-pipeline/netflix_dbt/models/Mart/movie_recommendation.py`)
- Weighted ratings → Netflix raw tables: reads ratings (evidence: `Netflix-data-pipeline/snowpark Transformation Scripts/weighted_ratings.py`)
- Weighted ratings → Analytics marts: writes weighted results (evidence: `Netflix-data-pipeline/snowpark Transformation Scripts/weighted_ratings.py`)
- Hidden gems → Netflix raw tables: queries movie data (evidence: `Netflix-data-pipeline/snowpark Transformation Scripts/proc_hidden_gems.py`)
- Weather extraction → Weather API: requests observations (evidence: `Weather-data-pipeline/airflow/dags/data_extract.py`)
- Weather warehouse load → Weather API: fetches weather (evidence: `Weather-data-pipeline/airflow/dags/snowflake_data_insert.py`)
- Weather warehouse load → Raw weather table: inserts payload (evidence: `Weather-data-pipeline/airflow/dags/snowflake_data_insert.py`)
- Scheduled dbt build → Staged weather: runs dbt build (evidence: `Weather-data-pipeline/airflow/dags/weather_data_pipeline_v2.py`)
- Weather metrics → Observation facts: reads observations (evidence: `Weather-data-pipeline/weather_data/models/Mart/mart_daily_city_metrics.py`)
- Comfort scores → Observation facts: reads observations (evidence: `Weather-data-pipeline/weather_data/models/Mart/weather_comfort_scores.py`)
- Trade producer → Finnhub feed: subscribes to trades (evidence: `stock-data-pipeline/kafka_producer_client.py`)
- Trade producer → Kafka trade topic: publishes trades (evidence: `stock-data-pipeline/kafka_producer_client.py`)
- Trade consumer → Kafka trade topic: consumes trades (evidence: `stock-data-pipeline/snowflake-connect.py`)
- Trade consumer → Raw stock trades: inserts raw payload (evidence: `stock-data-pipeline/snowflake-connect.py`)
- Restaurant scoring → Restaurant analytics: builds score model (evidence: `zomato-pipeline/zomato/models/mart/restaurant_rating.py`)
- Restaurant scoring → Restaurant staging: reads review and menu (evidence: `zomato-pipeline/zomato/models/mart/restaurant_rating.py`)
- Restaurant scoring → Restaurant analytics: reads customer and restaurant models (evidence: `zomato-pipeline/zomato/models/mart/restaurant_rating.py`)
- Scheduled dbt run → Restaurant analytics: runs dbt (evidence: `zomato-pipeline/airflow/dags/dbt_pipeline.py`)
