How imshoaibarshad/ibm-data-engineering-capstone works
UK Retail Analytics is a local data platform that ingests four heterogeneous sources, stages and validates them, loads a DuckDB star-schema warehouse, then produces business marts and a dashboard. The principal workflow is driven by the pipeline DAG; the CLI also exposes individual stages and status/quality operations. The README documents the broader product flow, while sampled source and index references support only selected internal call relationships.
Main entry points: pipeline.py Pipeline DAG · extract Source extraction · staging Staged Parquet · raw Raw archive
Components 25
Entry and orchestration
- CLI
src/retailde/cli.py - Configuration
src/retailde/config.py - Pipeline DAG
src/retailde/pipeline.py - DAG runner
src/retailde/orchestrator.py
Ingestion and staging
- Source extraction
src/retailde/extract - Fetch provenance
src/retailde/manifest.py - Raw archive
data/raw - Transaction staging
src/retailde/transform/transactions.py - Weather staging
src/retailde/transform/weather.py - FX staging
src/retailde/transform/fx.py - Bank-rate staging
src/retailde/transform/bank_rate.py - Staged Parquet
data/staging
Data quality
- Quality gates
src/retailde/quality/checks.py
Warehouse and marts
- Star-schema loader
src/retailde/warehouse/load.py - Warehouse schema
src/retailde/warehouse/schema.py - DuckDB warehouse
data/warehouse - Business marts
src/retailde/marts/build.py - Mart Parquet
data/marts
Reporting
- Dashboard reporting
src/retailde/report/dashboard.py - Reports
data/reports
Other components
- Engineer
- UCI retail workbook
- Open-Meteo
- Frankfurter / ECB
- Bank of England
Connections 36
- Engineer → CLI: runs commands
README.md - CLI → Configuration: loads settings
src/retailde/cli.py - CLI → Pipeline DAG: starts pipeline
src/retailde/cli.py - Pipeline DAG → DAG runner: executes tasks
src/retailde/pipeline.py - Pipeline DAG → Source extraction: schedules fetches
src/retailde/pipeline.py - Pipeline DAG → Transaction staging: schedules staging
src/retailde/pipeline.py - Pipeline DAG → Weather staging: schedules staging
src/retailde/pipeline.py - Pipeline DAG → FX staging: schedules staging
src/retailde/pipeline.py - Pipeline DAG → Bank-rate staging: schedules staging
src/retailde/pipeline.py - Pipeline DAG → Quality gates: runs gates
src/retailde/pipeline.py - Pipeline DAG → Star-schema loader: schedules load
src/retailde/pipeline.py - Pipeline DAG → Business marts: builds marts
README.md - Pipeline DAG → Dashboard reporting: publishes report
README.md - Source extraction → UCI retail workbook: fetches
README.md - Source extraction → Open-Meteo: fetches
README.md - Source extraction → Frankfurter / ECB: fetches
README.md - Source extraction → Bank of England: fetches
README.md - Source extraction → Raw archive: lands bytes
README.md - Source extraction → Fetch provenance: records provenance
src/retailde/extract/__init__.py - Transaction staging → Raw archive: reads workbook
README.md - Weather staging → Raw archive: reads raw data
README.md - FX staging → Raw archive: reads raw data
README.md - Bank-rate staging → Raw archive: reads HTML
src/retailde/transform/bank_rate.py - Transaction staging → Staged Parquet: writes Parquet
src/retailde/transform/transactions.py - Weather staging → Staged Parquet: writes Parquet
README.md - FX staging → Staged Parquet: writes Parquet
README.md - Bank-rate staging → Staged Parquet: writes Parquet
src/retailde/transform/bank_rate.py - Quality gates → Staged Parquet: checks staged data
README.md - Quality gates → Fetch provenance: checks provenance
src/retailde/quality/checks.py - Star-schema loader → Staged Parquet: loads Parquet
README.md - Star-schema loader → Warehouse schema: creates schema
src/retailde/warehouse/load.py - Star-schema loader → DuckDB warehouse: writes tables
README.md - Quality gates → DuckDB warehouse: checks integrity
README.md - Business marts → DuckDB warehouse: queries warehouse
src/retailde/marts/build.py - Business marts → Mart Parquet: exports Parquet
src/retailde/marts/build.py - Dashboard reporting → Reports: publishes outputs
README.md