# ashwines/code-work architecture

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

- Interactive diagram: https://gitdiagram.com/ashwines/code-work
- Repository: https://github.com/ashwines/code-work

## Overview

This repository is a portfolio of independent data-engineering projects and learning examples, not one integrated application. The clearest end-to-end workflows are BFSI’s staged ETL, the EU retail Postgres-to-lake-to-marts pipeline, and Olist’s landing-to-raw-to-refined-to-marts lakehouse. The graph keeps these projects separate and includes the notebook examples and profiling utility as independent capabilities. Some relationships are evidenced by excerpts or the source index; unsampled modules are included where substantial, but are not given speculative call paths.

Main entry points: [`BFSI/src/pipelines/run_pipeline.py`](https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/run_pipeline.py) (ETL orchestrator), [`eu-retail-analytics-platform/src/ingestion/ingestion_engine.py`](https://github.com/ashwines/code-work/blob/master/eu-retail-analytics-platform/src/ingestion/ingestion_engine.py) (Ingestion engine), [`BFSI/src/pipelines/ods_pipeline.py`](https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/ods_pipeline.py) (ODS loading), [`BFSI/src/pipelines/edw_pipeline.py`](https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/edw_pipeline.py) (EDW loading)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bfsi["BFSI ETL"]
  node_bfsi_runner["ETL orchestrator<br/>[run_pipeline.py]"]
  node_bfsi_staging["CSV staging"]
  node_bfsi_ods["ODS loading<br/>[ods_pipeline.py]"]
  node_bfsi_edw["EDW loading<br/>[edw_pipeline.py]"]
  node_bfsi_marts["Mart loading<br/>[mart_pipeline.py]"]
  node_bfsi_config["Configuration<br/>[config.py]"]
  node_bfsi_database["Database access<br/>[database.py]"]
  node_bfsi_logger["Pipeline logging<br/>[logger.py]"]
  node_bfsi_validators["Data validators<br/>[validators.py]"]
  node_bfsi_transforms["Layer transforms"]
end

subgraph group_retail["EU Retail Lake"]
  node_retail_dag["Daily DAG"]
  node_retail_engine["Ingestion engine"]
end

subgraph group_olist["Olist Lakehouse"]
  node_olist_dag["Lakehouse DAG"]
  node_olist_raw_dag["Raw ingest DAG"]
  node_olist_landing["Landing upload"]
  node_olist_raw["Raw ingestion<br/>[ingest_to_raw.py]"]
  node_olist_refined["Refined cleaning"]
  node_olist_marts["Mart building<br/>[build_marts.py]"]
  node_spark_session["Spark session<br/>[spark_session.py]"]
end

subgraph group_learning["Notebook Examples"]
  node_notebook_fundamentals["Notebook commands"]
  node_notebook_markdown["Notebook markdown"]
  node_notebook_child["Child notebook"]
  node_usecase_magic["Magic commands"]
  node_usecase_widgets["Widgets and DBUtils"]
  node_usecase_load["Notebook data load"]
end

subgraph group_utilities["Data Utilities"]
  node_profiler["Data profiler<br/>[data_profiler.py]"]
  node_retail_seed["Retail data seeder<br/>[seed_retail_db.py]"]
  node_superset_config["Superset configuration<br/>[superset_config.py]"]
end

node_operator(("Pipeline operator"))
node_pg[("Postgres OLTP")]
node_minio[("MinIO lake")]
node_clickhouse[("ClickHouse marts")]

node_operator -->|"starts"| node_bfsi_runner
node_bfsi_runner -->|"dispatches"| node_bfsi_staging
node_bfsi_runner -->|"dispatches"| node_bfsi_ods
node_bfsi_runner -->|"dispatches"| node_bfsi_edw
node_bfsi_runner -->|"dispatches"| node_bfsi_marts
node_bfsi_staging -->|"loads staging"| node_bfsi_ods
node_bfsi_ods -->|"feeds ODS"| node_bfsi_edw
node_bfsi_edw -->|"feeds marts"| node_bfsi_marts
node_bfsi_staging -->|"loads tables"| node_bfsi_database
node_bfsi_ods -->|"executes SQL"| node_bfsi_database
node_bfsi_edw -->|"executes procedure"| node_bfsi_database
node_bfsi_marts -->|"executes SQL"| node_bfsi_database
node_bfsi_database -->|"loads settings"| node_bfsi_config
node_bfsi_staging -->|"loads settings"| node_bfsi_config
node_bfsi_ods -->|"loads settings"| node_bfsi_config
node_bfsi_edw -->|"loads settings"| node_bfsi_config
node_bfsi_marts -->|"loads settings"| node_bfsi_config
node_bfsi_runner -->|"configures logs"| node_bfsi_logger
node_retail_dag -->|"dispatches tasks"| node_retail_engine
node_retail_engine -->|"extracts tables"| node_pg
node_retail_engine -->|"writes landing"| node_minio
node_retail_engine -->|"writes raw"| node_minio
node_retail_engine -->|"builds marts"| node_clickhouse
node_olist_raw -->|"creates session"| node_spark_session
node_olist_refined -->|"uses session"| node_spark_session
node_olist_marts -->|"uses session"| node_spark_session

click node_bfsi_runner "https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/run_pipeline.py"
click node_bfsi_staging "https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/staging_pipeline.py"
click node_bfsi_ods "https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/ods_pipeline.py"
click node_bfsi_edw "https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/edw_pipeline.py"
click node_bfsi_marts "https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/mart_pipeline.py"
click node_bfsi_config "https://github.com/ashwines/code-work/blob/master/BFSI/src/config.py"
click node_bfsi_database "https://github.com/ashwines/code-work/blob/master/BFSI/src/database.py"
click node_bfsi_logger "https://github.com/ashwines/code-work/blob/master/BFSI/src/utils/logger.py"
click node_bfsi_validators "https://github.com/ashwines/code-work/blob/master/BFSI/src/utils/validators.py"
click node_bfsi_transforms "https://github.com/ashwines/code-work/tree/master/BFSI/src/transforms"
click node_retail_dag "https://github.com/ashwines/code-work/blob/master/eu-retail-analytics-platform/dags/pg_to_minio_lake.py"
click node_retail_engine "https://github.com/ashwines/code-work/blob/master/eu-retail-analytics-platform/src/ingestion/ingestion_engine.py"
click node_olist_dag "https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/dags/olist_lakehouse_dag.py"
click node_olist_raw_dag "https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/dags/olist_raw_ingestion_dag.py"
click node_olist_landing "https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/src/jobs/landing/upload_to_landing.py"
click node_olist_raw "https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/src/jobs/raw/ingest_to_raw.py"
click node_olist_refined "https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/src/jobs/refined/clean_to_refined.py"
click node_olist_marts "https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/src/jobs/marts/build_marts.py"
click node_spark_session "https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/src/utils/spark_session.py"
click node_notebook_fundamentals "https://github.com/ashwines/code-work/blob/master/databricks_script/1_DATABRICKS_NOTEBOOK_FUNDAMENTALS/1_Explore_Notebooks_command_usage_and_examples.py"
click node_notebook_markdown "https://github.com/ashwines/code-work/blob/master/databricks_script/1_DATABRICKS_NOTEBOOK_FUNDAMENTALS/2_Explore_Notebook_Markdowns.py"
click node_notebook_child "https://github.com/ashwines/code-work/blob/master/databricks_script/1_DATABRICKS_NOTEBOOK_FUNDAMENTALS/4_child_notebook.py"
click node_usecase_magic "https://github.com/ashwines/code-work/blob/master/databricks_script/1_USECASES_NB_FUNDAMENTALS/1_Usecase_Explore_Notebooks_magic_commands.py"
click node_usecase_widgets "https://github.com/ashwines/code-work/blob/master/databricks_script/1_USECASES_NB_FUNDAMENTALS/2_Usecase_md_dbutils_widgets.py"
click node_usecase_load "https://github.com/ashwines/code-work/blob/master/databricks_script/1_USECASES_NB_FUNDAMENTALS/4_child_nb_dataload.py"
click node_profiler "https://github.com/ashwines/code-work/blob/master/python_deai/script/data_profiler.py"
click node_retail_seed "https://github.com/ashwines/code-work/blob/master/eu-retail-analytics-platform/data_generator/seed_retail_db.py"
click node_superset_config "https://github.com/ashwines/code-work/blob/master/eu-retail-analytics-platform/superset_config.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_bfsi_runner,node_bfsi_staging,node_bfsi_ods,node_bfsi_edw,node_bfsi_marts,node_bfsi_config,node_bfsi_database,node_bfsi_logger,node_bfsi_validators,node_bfsi_transforms toneBlue
class node_retail_dag,node_retail_engine,node_pg,node_minio,node_clickhouse toneAmber
class node_olist_dag,node_olist_raw_dag,node_olist_landing,node_olist_raw,node_olist_refined,node_olist_marts,node_spark_session toneMint
class node_notebook_fundamentals,node_notebook_markdown,node_notebook_child,node_usecase_magic,node_usecase_widgets,node_usecase_load toneRose
class node_profiler,node_retail_seed,node_superset_config,node_operator toneIndigo
```

## Components

### BFSI ETL

- [ETL orchestrator](https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/run_pipeline.py): `BFSI/src/pipelines/run_pipeline.py`
- [CSV staging](https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/staging_pipeline.py): `BFSI/src/pipelines/staging_pipeline.py`
- [ODS loading](https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/ods_pipeline.py): `BFSI/src/pipelines/ods_pipeline.py`
- [EDW loading](https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/edw_pipeline.py): `BFSI/src/pipelines/edw_pipeline.py`
- [Mart loading](https://github.com/ashwines/code-work/blob/master/BFSI/src/pipelines/mart_pipeline.py): `BFSI/src/pipelines/mart_pipeline.py`
- [Configuration](https://github.com/ashwines/code-work/blob/master/BFSI/src/config.py): `BFSI/src/config.py`
- [Database access](https://github.com/ashwines/code-work/blob/master/BFSI/src/database.py): `BFSI/src/database.py`
- [Pipeline logging](https://github.com/ashwines/code-work/blob/master/BFSI/src/utils/logger.py): `BFSI/src/utils/logger.py`
- [Data validators](https://github.com/ashwines/code-work/blob/master/BFSI/src/utils/validators.py): `BFSI/src/utils/validators.py`
- [Layer transforms](https://github.com/ashwines/code-work/tree/master/BFSI/src/transforms): `BFSI/src/transforms`

### EU Retail Lake

- [Daily DAG](https://github.com/ashwines/code-work/blob/master/eu-retail-analytics-platform/dags/pg_to_minio_lake.py): `eu-retail-analytics-platform/dags/pg_to_minio_lake.py`
- [Ingestion engine](https://github.com/ashwines/code-work/blob/master/eu-retail-analytics-platform/src/ingestion/ingestion_engine.py): `eu-retail-analytics-platform/src/ingestion/ingestion_engine.py`

### Olist Lakehouse

- [Lakehouse DAG](https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/dags/olist_lakehouse_dag.py): `olist-ecommerce-lakehouse/dags/olist_lakehouse_dag.py`
- [Raw ingest DAG](https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/dags/olist_raw_ingestion_dag.py): `olist-ecommerce-lakehouse/dags/olist_raw_ingestion_dag.py`
- [Landing upload](https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/src/jobs/landing/upload_to_landing.py): `olist-ecommerce-lakehouse/src/jobs/landing/upload_to_landing.py`
- [Raw ingestion](https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/src/jobs/raw/ingest_to_raw.py): `olist-ecommerce-lakehouse/src/jobs/raw/ingest_to_raw.py`
- [Refined cleaning](https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/src/jobs/refined/clean_to_refined.py): `olist-ecommerce-lakehouse/src/jobs/refined/clean_to_refined.py`
- [Mart building](https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/src/jobs/marts/build_marts.py): `olist-ecommerce-lakehouse/src/jobs/marts/build_marts.py`
- [Spark session](https://github.com/ashwines/code-work/blob/master/olist-ecommerce-lakehouse/src/utils/spark_session.py): `olist-ecommerce-lakehouse/src/utils/spark_session.py`

### Notebook Examples

- [Notebook commands](https://github.com/ashwines/code-work/blob/master/databricks_script/1_DATABRICKS_NOTEBOOK_FUNDAMENTALS/1_Explore_Notebooks_command_usage_and_examples.py): `databricks_script/1_DATABRICKS_NOTEBOOK_FUNDAMENTALS/1_Explore_Notebooks_command_usage_and_examples.py`
- [Notebook markdown](https://github.com/ashwines/code-work/blob/master/databricks_script/1_DATABRICKS_NOTEBOOK_FUNDAMENTALS/2_Explore_Notebook_Markdowns.py): `databricks_script/1_DATABRICKS_NOTEBOOK_FUNDAMENTALS/2_Explore_Notebook_Markdowns.py`
- [Child notebook](https://github.com/ashwines/code-work/blob/master/databricks_script/1_DATABRICKS_NOTEBOOK_FUNDAMENTALS/4_child_notebook.py): `databricks_script/1_DATABRICKS_NOTEBOOK_FUNDAMENTALS/4_child_notebook.py`
- [Magic commands](https://github.com/ashwines/code-work/blob/master/databricks_script/1_USECASES_NB_FUNDAMENTALS/1_Usecase_Explore_Notebooks_magic_commands.py): `databricks_script/1_USECASES_NB_FUNDAMENTALS/1_Usecase_Explore_Notebooks_magic_commands.py`
- [Widgets and DBUtils](https://github.com/ashwines/code-work/blob/master/databricks_script/1_USECASES_NB_FUNDAMENTALS/2_Usecase_md_dbutils_widgets.py): `databricks_script/1_USECASES_NB_FUNDAMENTALS/2_Usecase_md_dbutils_widgets.py`
- [Notebook data load](https://github.com/ashwines/code-work/blob/master/databricks_script/1_USECASES_NB_FUNDAMENTALS/4_child_nb_dataload.py): `databricks_script/1_USECASES_NB_FUNDAMENTALS/4_child_nb_dataload.py`

### Data Utilities

- [Data profiler](https://github.com/ashwines/code-work/blob/master/python_deai/script/data_profiler.py): `python_deai/script/data_profiler.py`
- [Retail data seeder](https://github.com/ashwines/code-work/blob/master/eu-retail-analytics-platform/data_generator/seed_retail_db.py): `eu-retail-analytics-platform/data_generator/seed_retail_db.py`
- [Superset configuration](https://github.com/ashwines/code-work/blob/master/eu-retail-analytics-platform/superset_config.py): `eu-retail-analytics-platform/superset_config.py`

### Other components

- **Pipeline operator**
- **Postgres OLTP**
- **MinIO lake**
- **ClickHouse marts**

## Connections

- Pipeline operator → ETL orchestrator: starts (evidence: `BFSI/src/pipelines/run_pipeline.py`)
- ETL orchestrator → CSV staging: dispatches (evidence: `BFSI/src/pipelines/run_pipeline.py`)
- ETL orchestrator → ODS loading: dispatches (evidence: `BFSI/src/pipelines/run_pipeline.py`)
- ETL orchestrator → EDW loading: dispatches (evidence: `BFSI/src/pipelines/run_pipeline.py`)
- ETL orchestrator → Mart loading: dispatches (evidence: `BFSI/src/pipelines/run_pipeline.py`)
- CSV staging → ODS loading: loads staging (evidence: `BFSI/src/pipelines/ods_pipeline.py`)
- ODS loading → EDW loading: feeds ODS (evidence: `BFSI/src/pipelines/edw_pipeline.py`)
- EDW loading → Mart loading: feeds marts (evidence: `BFSI/src/pipelines/mart_pipeline.py`)
- CSV staging → Database access: loads tables (evidence: `BFSI/src/pipelines/staging_pipeline.py`)
- ODS loading → Database access: executes SQL (evidence: `BFSI/src/pipelines/ods_pipeline.py`)
- EDW loading → Database access: executes procedure (evidence: `BFSI/src/pipelines/edw_pipeline.py`)
- Mart loading → Database access: executes SQL (evidence: `BFSI/src/pipelines/mart_pipeline.py`)
- Database access → Configuration: loads settings (evidence: `BFSI/src/database.py`)
- CSV staging → Configuration: loads settings (evidence: `BFSI/src/pipelines/staging_pipeline.py`)
- ODS loading → Configuration: loads settings (evidence: `BFSI/src/pipelines/ods_pipeline.py`)
- EDW loading → Configuration: loads settings (evidence: `BFSI/src/pipelines/edw_pipeline.py`)
- Mart loading → Configuration: loads settings (evidence: `BFSI/src/pipelines/mart_pipeline.py`)
- ETL orchestrator → Pipeline logging: configures logs (evidence: `BFSI/src/pipelines/run_pipeline.py`)
- Daily DAG → Ingestion engine: dispatches tasks (evidence: `eu-retail-analytics-platform/dags/pg_to_minio_lake.py`)
- Ingestion engine → Postgres OLTP: extracts tables (evidence: `eu-retail-analytics-platform/src/ingestion/ingestion_engine.py`)
- Ingestion engine → MinIO lake: writes landing (evidence: `eu-retail-analytics-platform/src/ingestion/ingestion_engine.py`)
- Ingestion engine → MinIO lake: writes raw (evidence: `eu-retail-analytics-platform/src/ingestion/ingestion_engine.py`)
- Ingestion engine → ClickHouse marts: builds marts (evidence: `eu-retail-analytics-platform/src/ingestion/ingestion_engine.py`)
- Raw ingestion → Spark session: creates session (evidence: `olist-ecommerce-lakehouse/src/jobs/raw/ingest_to_raw.py`)
- Refined cleaning → Spark session: uses session (evidence: `olist-ecommerce-lakehouse/src/jobs/refined/clean_to_refined.py`)
- Mart building → Spark session: uses session (evidence: `olist-ecommerce-lakehouse/src/jobs/marts/build_marts.py`)
