How matsdave/ardent_mills works
This is an Excel-to-Oracle production ETL: a workbook enters through the production runner, is extracted and transformed into OLTP tables, then incremental procedures refresh OLAP dimensions and facts. The repository also documents validation-only runs, file archiving and quarantine, incremental change history, database audit/error tracking, and email alerts. Source excerpts show the OLTP extraction, transformation orchestration, validation, and MERGE loading; production wrapper and OLAP links rely on README documentation, so those edges cite the README.
Main entry points: pipeline_common.py Pipeline operations · main.py OLTP load workflow · oracle_loader.py Oracle MERGE loader · pipeline.py Transform orchestration
Components 21
Pipeline entry and operations
- Production runner
run_pipeline.py - Pipeline operations
pipelines/pipeline_common.py
OLTP ingestion
- Excel extraction
ardent_mills_etl/utils/excel_reader.py - Runtime settings
ardent_mills_etl/config/settings.py - Table specifications
ardent_mills_etl/config/table_specs.py - OLTP load workflow
ardent_mills_etl/main.py - Oracle MERGE loader
ardent_mills_etl/loaders/oracle_loader.py - Oracle OLTP tables
sql/01_tables.sql
Transformation and quality
- Dimension transforms
ardent_mills_etl/transformers/dimensions.py - Fact transforms
ardent_mills_etl/transformers/facts.py - Transform orchestration
ardent_mills_etl/transformers/pipeline.py - Transform helpers
ardent_mills_etl/utils/helpers.py - Data validation
ardent_mills_etl/utils/validation.py - Incremental history
ardent_mills_etl/utils/change_tracker.py
OLAP warehouse
- Incremental OLAP procedures
sql/02_procedures.sql - Oracle OLAP tables
sql/01_tables.sql
Run tracking and alerts
- Audit and error records
sql/01_tables.sql - File queue and archive
pipelines/pipeline_common.py
Other components
- Pipeline operator
- Excel workbook
- SMTP email service
Connections 23
- Pipeline operator → Production runner: starts run
README.md - Excel workbook → File queue and archive: enters queue
README.md - Production runner → Pipeline operations: runs pipeline
README.md - Pipeline operations → File queue and archive: archives and routes
README.md - Pipeline operations → OLTP load workflow: invokes OLTP load
README.md - OLTP load workflow → Excel extraction: loads sheets
ardent_mills_etl/main.py - Excel extraction → Runtime settings: reads sheet settings
ardent_mills_etl/utils/excel_reader.py - OLTP load workflow → Transform orchestration: builds tables
ardent_mills_etl/main.py - Transform orchestration → Dimension transforms: builds dimensions
ardent_mills_etl/transformers/pipeline.py - Transform orchestration → Fact transforms: builds facts
ardent_mills_etl/transformers/pipeline.py - Dimension transforms → Transform helpers: uses utilities
ardent_mills_etl/transformers/dimensions.py - Fact transforms → Transform helpers: uses utilities
ardent_mills_etl/transformers/facts.py - Transform orchestration → Table specifications: orders tables
ardent_mills_etl/transformers/pipeline.py - OLTP load workflow → Data validation: checks results
ardent_mills_etl/main.py - OLTP load workflow → Oracle MERGE loader: loads tables
ardent_mills_etl/main.py - Oracle MERGE loader → Runtime settings: uses connection config
ardent_mills_etl/loaders/oracle_loader.py - Oracle MERGE loader → Table specifications: uses table keys
ardent_mills_etl/loaders/oracle_loader.py - Oracle MERGE loader → Oracle OLTP tables: merges rows
README.md - Pipeline operations → Incremental history: tracks incremental changes
README.md - Pipeline operations → Incremental OLAP procedures: executes incremental loads
README.md - Incremental OLAP procedures → Oracle OLAP tables: refreshes dimensions and facts
README.md - Pipeline operations → Audit and error records: writes audit and errors
README.md - Pipeline operations → SMTP email service: sends alerts
README.md