How mohamed-aref-1/scad_pipeline works
SCAD Monthly POI Pipeline prepares Abu Dhabi monthly POI data: it downloads current and prior raw Azure data plus the prior completed S3 delivery, builds a region-scoped new-POI delta, and copies and refreshes the prior delivery as the next-month base. The README explicitly says the delta is not appended to that base. The repository also exposes validation, translation, name repair, filtering, and enrichment stages. Connections for unsampled stages rely on the pipeline’s SOURCE INDEX references; uncertain stage ordering is omitted.
Main entry points: pipeline.py Pipeline orchestrator · csv_files.py CSV utilities · spatial_enrichment.py Spatial enrichment · s3_delivery.py S3 downloads
Components 28
Monthly preparation
- Pipeline orchestrator
pipeline.py - Azure downloads
utils/azure_blob.py - S3 downloads
utils/s3_delivery.py - Monthly POI delta
transformers/monthly_delta_transformer.py - Delivery refresh
transformers/delivery_transformer.py - Audit reporting
utils/reporting.py
POI transformations
- POI validation
transformers/valid_pois_transformer.py - Name translation
transformers/translation_transformer.py - Name repair
transformers/name_repair_transformer.py - Personal-name filter
transformers/personal_name_filter_transformer.py - Farm and majlis fixes
transformers/farm_majlis_transformer.py - Street addresses
transformers/street_address_transformer.py - Bridge filtering
transformers/bridge_filter_transformer.py - Core transformation
transformers/core_transformer.py - Delivery schema
transformers/delivery_schema_transformer.py - Real-estate enrichment
transformers/real_estate_transformer.py - Demographics enrichment
transformers/demographics_transformer.py - Spatial enrichment
utils/spatial_enrichment.py
Policies and settings
- Column policies
config/columns.py - Pipeline settings
config/settings.py - Validation settings
config/poi_validation.py - Spatial settings
config/spatial_enrichment.py
Shared data services
- CSV utilities
utils/csv_files.py - Progress reporting
utils/progress.py - Run logging
utils/logging_config.py
Other components
- Operator
- Azure raw data
- S3 delivery
Connections 33
- Operator → Pipeline orchestrator: starts run
README.md - Pipeline orchestrator → Pipeline settings: loads settings
pipeline.py - Pipeline orchestrator → Azure downloads: downloads raw
README.md - Azure downloads → Azure raw data: reads blobs
README.md - Pipeline orchestrator → S3 downloads: downloads prior delivery
README.md - S3 downloads → S3 delivery: reads objects
utils/s3_delivery.py - Pipeline orchestrator → Monthly POI delta: builds delta
README.md - Pipeline orchestrator → Delivery refresh: prepares delivery
README.md - Pipeline orchestrator → Audit reporting: writes reports
pipeline.py - Pipeline orchestrator → POI validation: invokes validation
pipeline.py - Pipeline orchestrator → Name translation: invokes translation
pipeline.py - Pipeline orchestrator → Name repair: dispatches repair
pipeline.py - Pipeline orchestrator → Personal-name filter: dispatches filter
pipeline.py - Pipeline orchestrator → Farm and majlis fixes: dispatches fixes
pipeline.py - Pipeline orchestrator → Street addresses: dispatches addresses
pipeline.py - Pipeline orchestrator → Bridge filtering: dispatches filter
pipeline.py - Pipeline orchestrator → Core transformation: dispatches core stage
pipeline.py - Pipeline orchestrator → Real-estate enrichment: invokes enrichment
pipeline.py - Pipeline orchestrator → Demographics enrichment: invokes enrichment
pipeline.py - Pipeline orchestrator → Spatial enrichment: uses spatial services
pipeline.py - Pipeline orchestrator → Column policies: uses column policy
pipeline.py - Pipeline orchestrator → Validation settings: loads validation config
pipeline.py - Pipeline orchestrator → Spatial settings: loads spatial config
pipeline.py - Monthly POI delta → CSV utilities: reads and writes CSV
transformers/monthly_delta_transformer.py - Delivery refresh → CSV utilities: uses CSV utilities
transformers/delivery_transformer.py - POI validation → CSV utilities: uses CSV utilities
transformers/valid_pois_transformer.py - Name translation → CSV utilities: uses CSV utilities
transformers/translation_transformer.py - Name repair → CSV utilities: uses CSV utilities
transformers/name_repair_transformer.py - Real-estate enrichment → Spatial enrichment: uses spatial services
transformers/real_estate_transformer.py - Demographics enrichment → Spatial enrichment: uses spatial services
transformers/demographics_transformer.py - Spatial enrichment → S3 downloads: downloads references
utils/spatial_enrichment.py - Spatial enrichment → CSV utilities: discovers CSV files
utils/spatial_enrichment.py - Pipeline orchestrator → Run logging: configures logging
pipeline.py