# btbarillo/de_bootcamp3 architecture

> Architecture diagram of the GitHub repository btbarillo/de_bootcamp3, 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/btbarillo/de_bootcamp3
- Repository: https://github.com/btbarillo/de_bootcamp3

## Overview

This repository is a data-engineering bootcamp portfolio rather than one integrated application: it combines Python exercises, weekly projects, and PostgreSQL practice. The principal end-to-end workflow is the Week 6 earthquake pipeline: request recent events, normalize them, replace a database table, and append run counts. Other projects demonstrate weather extraction, enrollment cleaning and reporting, and a separate earthquake-to-cloud pipeline. The Week 7 country job and SQL activities are represented as distinct areas; their runtime connections are not established by the sampled excerpts.

Main entry points: [`Projects/Week_6_Project/Week_6_main.py`](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_6_Project/Week_6_main.py) (Earthquake ETL), [`Projects/Week_2_Project/Week_2_Weather_Fetcher.py`](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_2_Project/Week_2_Weather_Fetcher.py) (Weather Fetcher), [`Projects/Week_5_Project/Week_5_main.py`](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_5_Project/Week_5_main.py) (Enrollment Reporting), [`Projects/Week_7_Project/job_earthquake_api.py`](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_7_Project/job_earthquake_api.py) (Earthquake Cloud Job)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_python["Python Foundations"]
  node_python_exercises["Python Exercises"]
  node_list_activity["List Manager"]
  node_list_loops["Lists and Loops<br/>[List_If_For.py]"]
  node_variables["Variables and Strings"]
  node_dictionary_methods["Dictionary Methods"]
  node_file_methods["File Handling"]
  node_functions["Function Pipeline<br/>[Functions.py]"]
end

subgraph group_projects["Weekly Projects"]
  node_calculator["CLI Calculator"]
  node_weather_fetcher["Weather Fetcher"]
  node_weather_csv["Weather CSV<br/>[weather.csv]"]
  node_enrollment_generator["Enrollment Generator"]
  node_enrollment_report["Enrollment Reporting<br/>[Week_5_main.py]"]
  node_enrollment_inputs["Enrollment Inputs"]
  node_enrollment_outputs["Enrollment Reports"]
end

subgraph group_pipelines["Data Pipelines"]
  node_earthquake_pipeline["Earthquake ETL<br/>[Week_6_main.py]"]
  node_earthquake_db[("Earthquake Database")]
  node_run_log["Pipeline Run Log<br/>[pipeline_runs.csv]"]
  node_gcp_job["Earthquake Cloud Job"]
  node_country_job["Country Data Job"]
end

subgraph group_sql["PostgreSQL Practice"]
  node_sql_activities["SQL Activities"]
  node_retail_sql["Retail Database Project"]
  node_reporting_sql["Department Reporting"]
  node_week7_sql["Earthquake Analysis"]
end

node_learner(("Learner"))
node_weather_api(("Weather API"))
node_usgs(("USGS Events API"))
node_gcs[("Google Cloud Storage")]

node_learner -->|"practices with"| node_python_exercises
node_learner -->|"uses"| node_calculator
node_learner -->|"enters city"| node_weather_fetcher
node_weather_fetcher -->|"requests weather"| node_weather_api
node_weather_fetcher -->|"appends row"| node_weather_csv
node_learner -->|"runs generator"| node_enrollment_generator
node_enrollment_generator -->|"writes CSVs"| node_enrollment_inputs
node_learner -->|"runs report"| node_enrollment_report
node_enrollment_report -->|"reads CSVs"| node_enrollment_inputs
node_enrollment_report -->|"writes reports"| node_enrollment_outputs
node_learner -->|"runs pipeline"| node_earthquake_pipeline
node_earthquake_pipeline -->|"fetches events"| node_usgs
node_earthquake_pipeline -->|"replaces table"| node_earthquake_db
node_earthquake_pipeline -->|"appends counts"| node_run_log
node_learner -->|"runs job"| node_gcp_job
node_gcp_job -->|"fetches events"| node_usgs
node_gcp_job -->|"uploads raw and clean"| node_gcs
node_learner -.->|"runs job"| node_country_job
node_learner -.->|"practices SQL"| node_sql_activities
node_learner -.->|"works through"| node_retail_sql
node_learner -.->|"builds reports"| node_reporting_sql
node_learner -.->|"analyzes data"| node_week7_sql

click node_python_exercises "https://github.com/btbarillo/de_bootcamp3/tree/master/Python%20Exercises"
click node_list_activity "https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/Activities/Act_7_List_Manager.py"
click node_list_loops "https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/List_IfCondition_Loops/List_If_For.py"
click node_variables "https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/Variables/variables_numbers_strings.py"
click node_dictionary_methods "https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/Dictionaries/Dictionaries_Built_In_Methods.py"
click node_file_methods "https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/File%20Handling/file_handling_built_in_functions.py"
click node_functions "https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/Functions/Functions.py"
click node_calculator "https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_1_Project/Week_1_Data_Calculator.py"
click node_weather_fetcher "https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_2_Project/Week_2_Weather_Fetcher.py"
click node_weather_csv "https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_2_Project/weather.csv"
click node_enrollment_generator "https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_5_Project/Week_5_data_generator.py"
click node_enrollment_report "https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_5_Project/Week_5_main.py"
click node_enrollment_inputs "https://github.com/btbarillo/de_bootcamp3/tree/master/data/raw"
click node_enrollment_outputs "https://github.com/btbarillo/de_bootcamp3/tree/master/data/processed"
click node_earthquake_pipeline "https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_6_Project/Week_6_main.py"
click node_run_log "https://github.com/btbarillo/de_bootcamp3/blob/master/data/processed/pipeline_runs.csv"
click node_gcp_job "https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_7_Project/job_earthquake_api.py"
click node_country_job "https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_7_Project/job_user_countries.py"
click node_sql_activities "https://github.com/btbarillo/de_bootcamp3/tree/master/PostgreSQL/Activities"
click node_retail_sql "https://github.com/btbarillo/de_bootcamp3/tree/master/Projects/Week_3_Project"
click node_reporting_sql "https://github.com/btbarillo/de_bootcamp3/tree/master/Projects/Week_4_Project"
click node_week7_sql "https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_7_Project/Earthquake_analysis.sql"

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_python_exercises,node_list_activity,node_list_loops,node_variables,node_dictionary_methods,node_file_methods,node_functions toneBlue
class node_calculator,node_weather_fetcher,node_weather_csv,node_enrollment_generator,node_enrollment_report,node_enrollment_inputs,node_enrollment_outputs,node_gcs toneAmber
class node_earthquake_pipeline,node_earthquake_db,node_run_log,node_gcp_job,node_country_job,node_weather_api,node_usgs toneMint
class node_sql_activities,node_retail_sql,node_reporting_sql,node_week7_sql toneRose
class node_learner toneIndigo
```

## Components

### Python Foundations

- [Python Exercises](https://github.com/btbarillo/de_bootcamp3/tree/master/Python%20Exercises): `Python Exercises`
- [List Manager](https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/Activities/Act_7_List_Manager.py): `Python Exercises/Activities/Act_7_List_Manager.py`
- [Lists and Loops](https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/List_IfCondition_Loops/List_If_For.py): `Python Exercises/List_IfCondition_Loops/List_If_For.py`
- [Variables and Strings](https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/Variables/variables_numbers_strings.py): `Python Exercises/Variables/variables_numbers_strings.py`
- [Dictionary Methods](https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/Dictionaries/Dictionaries_Built_In_Methods.py): `Python Exercises/Dictionaries/Dictionaries_Built_In_Methods.py`
- [File Handling](https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/File%20Handling/file_handling_built_in_functions.py): `Python Exercises/File Handling/file_handling_built_in_functions.py`
- [Function Pipeline](https://github.com/btbarillo/de_bootcamp3/blob/master/Python%20Exercises/Functions/Functions.py): `Python Exercises/Functions/Functions.py`

### Weekly Projects

- [CLI Calculator](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_1_Project/Week_1_Data_Calculator.py): `Projects/Week_1_Project/Week_1_Data_Calculator.py`
- [Weather Fetcher](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_2_Project/Week_2_Weather_Fetcher.py): `Projects/Week_2_Project/Week_2_Weather_Fetcher.py`
- [Weather CSV](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_2_Project/weather.csv): `Projects/Week_2_Project/weather.csv`
- [Enrollment Generator](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_5_Project/Week_5_data_generator.py): `Projects/Week_5_Project/Week_5_data_generator.py`
- [Enrollment Reporting](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_5_Project/Week_5_main.py): `Projects/Week_5_Project/Week_5_main.py`
- [Enrollment Inputs](https://github.com/btbarillo/de_bootcamp3/tree/master/data/raw): `data/raw`
- [Enrollment Reports](https://github.com/btbarillo/de_bootcamp3/tree/master/data/processed): `data/processed`

### Data Pipelines

- [Earthquake ETL](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_6_Project/Week_6_main.py): `Projects/Week_6_Project/Week_6_main.py`
- **Earthquake Database**
- [Pipeline Run Log](https://github.com/btbarillo/de_bootcamp3/blob/master/data/processed/pipeline_runs.csv): `data/processed/pipeline_runs.csv`
- [Earthquake Cloud Job](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_7_Project/job_earthquake_api.py): `Projects/Week_7_Project/job_earthquake_api.py`
- [Country Data Job](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_7_Project/job_user_countries.py): `Projects/Week_7_Project/job_user_countries.py`

### PostgreSQL Practice

- [SQL Activities](https://github.com/btbarillo/de_bootcamp3/tree/master/PostgreSQL/Activities): `PostgreSQL/Activities`
- [Retail Database Project](https://github.com/btbarillo/de_bootcamp3/tree/master/Projects/Week_3_Project): `Projects/Week_3_Project`
- [Department Reporting](https://github.com/btbarillo/de_bootcamp3/tree/master/Projects/Week_4_Project): `Projects/Week_4_Project`
- [Earthquake Analysis](https://github.com/btbarillo/de_bootcamp3/blob/master/Projects/Week_7_Project/Earthquake_analysis.sql): `Projects/Week_7_Project/Earthquake_analysis.sql`

### Other components

- **Learner**
- **Weather API**
- **USGS Events API**
- **Google Cloud Storage**

## Connections

- Learner → Python Exercises: practices with
- Learner → CLI Calculator: uses (evidence: `Projects/Week_1_Project/Week_1_Data_Calculator.py`)
- Learner → Weather Fetcher: enters city (evidence: `Projects/Week_2_Project/Week_2_Weather_Fetcher.py`)
- Weather Fetcher → Weather API: requests weather (evidence: `Projects/Week_2_Project/Week_2_Weather_Fetcher.py`)
- Weather Fetcher → Weather CSV: appends row (evidence: `Projects/Week_2_Project/Week_2_Weather_Fetcher.py`)
- Learner → Enrollment Generator: runs generator (evidence: `Projects/Week_5_Project/Week_5_data_generator.py`)
- Enrollment Generator → Enrollment Inputs: writes CSVs (evidence: `Projects/Week_5_Project/Week_5_data_generator.py`)
- Learner → Enrollment Reporting: runs report (evidence: `Projects/Week_5_Project/Week_5_main.py`)
- Enrollment Reporting → Enrollment Inputs: reads CSVs (evidence: `Projects/Week_5_Project/Week_5_main.py`)
- Enrollment Reporting → Enrollment Reports: writes reports (evidence: `Projects/Week_5_Project/Week_5_main.py`)
- Learner → Earthquake ETL: runs pipeline (evidence: `Projects/Week_6_Project/Week_6_main.py`)
- Earthquake ETL → USGS Events API: fetches events (evidence: `Projects/Week_6_Project/Week_6_main.py`)
- Earthquake ETL → Earthquake Database: replaces table (evidence: `Projects/Week_6_Project/Week_6_main.py`)
- Earthquake ETL → Pipeline Run Log: appends counts (evidence: `Projects/Week_6_Project/Week_6_main.py`)
- Learner → Earthquake Cloud Job: runs job (evidence: `Projects/Week_7_Project/job_earthquake_api.py`)
- Earthquake Cloud Job → USGS Events API: fetches events (evidence: `Projects/Week_7_Project/job_earthquake_api.py`)
- Earthquake Cloud Job → Google Cloud Storage: uploads raw and clean (evidence: `Projects/Week_7_Project/job_earthquake_api.py`)
- Learner → Country Data Job: runs job
- Learner → SQL Activities: practices SQL
- Learner → Retail Database Project: works through
- Learner → Department Reporting: builds reports
- Learner → Earthquake Analysis: analyzes data
