How saugatme/flight-delay-analysis works
This is a monthly US flight-delay and network-analysis data product. Its principal workflow ingests BTS flight data and OpenFlights airport references into HDFS Bronze, validates and types flights into Silver, enriches them with airport data, builds analytical Gold outputs, loads results for serving, and presents interactive charts and route maps. Gold capabilities include carrier, period, airport, route, cancellation, connectivity, and score analyses. The README documents the end-to-end stages; some pipeline implementations were not sampled, so their internal calls are not inferred.
Main entry points: ingest_bronze.py Flight ingestion · silver.py Flight validation · storage.py Gold storage · enrichment.py Airport joins
Components 31
Source ingestion
- Flight ingestion
src/flight_delay_analysis/pipelines/ingest_bronze.py - Bronze ingestion
src/flight_delay_analysis/bronze.py - Reference ingestion
src/flight_delay_analysis/pipelines/ingest_reference.py - Reference ingestion logic
src/flight_delay_analysis/reference.py - HDFS datasets
Flight processing
- Silver build
src/flight_delay_analysis/pipelines/build_silver.py - Flight validation
src/flight_delay_analysis/silver.py - Airport reference build
src/flight_delay_analysis/pipelines/build_airport_reference.py - Airport validation
src/flight_delay_analysis/airport_reference.py - Flight enrichment
src/flight_delay_analysis/pipelines/build_enriched_flights.py - Airport joins
src/flight_delay_analysis/enrichment.py - Local Parquet step
src/flight_delay_analysis/build_parquet.py
Gold analysis
- Gold build
src/flight_delay_analysis/pipelines/build_analytics_gold.py - Analytics aggregations
src/flight_delay_analysis/gold/analytics.py - Carrier summaries
src/flight_delay_analysis/gold/carrier.py - Analysis subjects
src/flight_delay_analysis/gold - Gold storage
src/flight_delay_analysis/gold/storage.py - Analytics storage
src/flight_delay_analysis/gold/analytics_storage.py
Serving and dashboard
- MongoDB load
src/flight_delay_analysis/pipelines/load_gold_mongodb.py - MongoDB collections
src/flight_delay_analysis/serving/mongodb.py - Interactive dashboard
src/flight_delay_analysis/dashboard/app.py
Shared infrastructure
- Pipeline configuration
src/flight_delay_analysis/config.py - Flight contracts
src/flight_delay_analysis/contracts.py - Flight transforms
src/flight_delay_analysis/transforms.py - HDFS client
src/flight_delay_analysis/hdfs.py - Run options
src/flight_delay_analysis/run_options.py - Gold models
src/flight_delay_analysis/gold/models.py - Gold paths
src/flight_delay_analysis/gold/paths.py
Other components
- BTS flight CSV
- OpenFlights airports
- Analyst
Connections 31
- BTS flight CSV → Flight ingestion: ingests
README.md - Flight ingestion → Bronze ingestion: uses
src/flight_delay_analysis/pipelines/ingest_bronze.py - Bronze ingestion → HDFS datasets: writes
src/flight_delay_analysis/bronze.py - OpenFlights airports → Reference ingestion: ingests
README.md - Reference ingestion → Reference ingestion logic: uses
src/flight_delay_analysis/pipelines/ingest_reference.py - Reference ingestion logic → HDFS datasets: preserves
README.md - Silver build → Flight validation: uses
- Flight validation → HDFS datasets: reads and writes
README.md - Flight validation → Flight contracts: validates
src/flight_delay_analysis/silver.py - Flight validation → Flight transforms: uses
src/flight_delay_analysis/silver.py - Airport reference build → Airport validation: uses
src/flight_delay_analysis/pipelines/build_airport_reference.py - Airport validation → HDFS datasets: reads and writes
src/flight_delay_analysis/airport_reference.py - Flight enrichment → Airport joins: uses
src/flight_delay_analysis/pipelines/build_enriched_flights.py - Airport joins → Airport validation: uses
src/flight_delay_analysis/enrichment.py - Airport joins → HDFS datasets: writes
README.md - Gold build → Analytics aggregations: builds
- Gold build → Carrier summaries: builds
- Analytics aggregations → Analysis subjects: produces
README.md - Analytics aggregations → Analytics storage: persists via
- Carrier summaries → Gold storage: persists via
- Gold storage → HDFS datasets: writes
src/flight_delay_analysis/gold/storage.py - Analytics storage → HDFS datasets: writes
src/flight_delay_analysis/gold/analytics_storage.py - MongoDB load → MongoDB collections: loads
- MongoDB collections → Interactive dashboard: serves data
README.md - Analyst → Interactive dashboard: explores
README.md - Flight ingestion → Run options: uses
src/flight_delay_analysis/pipelines/ingest_bronze.py - Flight ingestion → Pipeline configuration: loads
src/flight_delay_analysis/pipelines/ingest_bronze.py - HDFS client → HDFS datasets: operates on
src/flight_delay_analysis/hdfs.py - Gold storage → Gold models: uses
src/flight_delay_analysis/gold/storage.py - Gold storage → Gold paths: uses
src/flight_delay_analysis/gold/storage.py - Local Parquet step → BTS flight CSV: reads
src/flight_delay_analysis/build_parquet.py