Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

👷 CopperPrint

End-to-end ETL pipeline analyzing water consumption and copper production data from chilean mining (2014–2024)

Overview

Data sourced from COCHILCO 🇨🇱 (Chilean Copper Commission) is extracted via Python, transformed into a star schema in SQL Server, and loaded into BigQuery as the analytical data warehouse. A Power BI dashboard connects via DirectQuery to expose six analytical views across production, water intensity, regional breakdown, and demand projections to 2034.

Pipeline

COCHILCO → Python ETL → Docker / SQL Server → BigQuery → Power BI

Tech Stack

  • ETL: Python · pandas · SQLAlchemy · google-cloud-bigquery
  • OLTP: SQL Server 2022 (Docker Compose) · T-SQL · star schema · 7 tables
  • DWH: Google BigQuery · 6 analytical views · southamerica-west1
  • BI: Power BI Service · DirectQuery · DAX
  • Web: Astro · TypeScript · SCSS · Vercel
  • Environment: Debian 12 · conda · lazydocker
  • Tools: DBeaver · Obsidian · VSCode

Local Setup

# 1. Start SQL Server
docker compose up -d

# 2. Run the pipeline (idempotent)
conda run -n copperprint python pipeline/main.py


(Requires .env with SQL Server credentials and a BigQuery service account JSON)

Live View

https://copperprint.vercel.app

About

ETL pipeline, star schema on SQL Server, loaded into BigQuery as a Data Warehouse. PBI dashboard connected via DirectQuery with DAX and analytical views.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages