How escoto/dbx-flame works
dbx-flame is a configuration-driven Databricks medallion data framework. A task’s YAML is validated into run context; a source reader supplies data, which is preprocessed, enriched, type-cast, checked by policies, then written to a Delta target using one of five verbs. The README documents this five-layer workflow; sampled source confirms the pipeline composition and several internal calls. Audit logging and Delta table configuration are supporting runtime concerns. Some source readers, startup wiring, and verb implementations were not sampled, so their links reflect README documentation or indexed imports rather than inspected call bodies.
Main entry points: pipeline.py Pipeline runner · output/registry.py Verb registry · run.py Task entrypoint · pipelines/registry.py Source registry
Components 30
Configuration and start
- Task entrypoint
src/dbx_flame/entrypoints/run.py - Typed config
src/dbx_flame/context/config.py - Context builder
src/dbx_flame/context/loader.py - Run context
src/dbx_flame/context/context.py
Source and preparation
- Pipeline runner
src/dbx_flame/entrypoints/pipeline.py - CSV source
src/dbx_flame/pipelines/csv_source.py - JSON source
src/dbx_flame/pipelines/json_source.py - Delta source
src/dbx_flame/pipelines/delta_source.py - Source registry
src/dbx_flame/pipelines/registry.py - Preprocessors
src/dbx_flame/pipelines/preprocessors.py - Enrichment
src/dbx_flame/pipelines/enrichment.py
Typing and policies
- Type casting
src/dbx_flame/typecast/service.py - DQ policy runner
src/dbx_flame/policies/runner.py - Platform policies
src/dbx_flame/policies/platform.py
Delta output
- Writer contract
src/dbx_flame/output/base.py - Verb registry
src/dbx_flame/output/registry.py - Append writer
src/dbx_flame/output/delta/append.py - Full writer
src/dbx_flame/output/delta/full.py - Upsert writer
src/dbx_flame/output/delta/upsert.py - SCD2 writer
src/dbx_flame/output/delta/scd2.py - Complete-delta writer
src/dbx_flame/output/delta/complete_delta.py - Write mechanics
src/dbx_flame/output/mechanics.py - Delta table config
src/dbx_flame/output/table_config.py
Run observability
- Audit logger
src/dbx_flame/observability/audit_logger.py - Write KPIs
src/dbx_flame/observability/kpi.py - Table tagging
src/dbx_flame/observability/tagging.py
Other components
- Workflow author
- Workflow YAML
- Databricks DQX
- Delta tables
Connections 32
- Workflow author → Workflow YAML: defines
README.md - Workflow YAML → Task entrypoint: configures
README.md - Task entrypoint → Typed config: validates
- Task entrypoint → Context builder: builds context
- Context builder → Run context: creates
- Run context → Audit logger: holds logger
src/dbx_flame/context/context.py - Task entrypoint → Pipeline runner: runs task
- Pipeline runner → Source registry: selects source
src/dbx_flame/entrypoints/pipeline.py - Source registry → CSV source: dispatches
src/dbx_flame/pipelines/registry.py - Source registry → JSON source: dispatches
src/dbx_flame/pipelines/registry.py - Source registry → Delta source: dispatches
src/dbx_flame/pipelines/registry.py - Pipeline runner → Preprocessors: prepares batch
src/dbx_flame/entrypoints/pipeline.py - Pipeline runner → Enrichment: enriches batch
src/dbx_flame/entrypoints/pipeline.py - Pipeline runner → Type casting: casts batch
src/dbx_flame/entrypoints/pipeline.py - Pipeline runner → DQ policy runner: gates batch
src/dbx_flame/entrypoints/pipeline.py - DQ policy runner → Databricks DQX: evaluates checks
src/dbx_flame/policies/runner.py - Type casting → Platform policies: rejects invalid casts
src/dbx_flame/typecast/service.py - Pipeline runner → Verb registry: selects verb
src/dbx_flame/entrypoints/pipeline.py - Verb registry → Writer contract: uses contract
src/dbx_flame/output/registry.py - Verb registry → Append writer: dispatches
src/dbx_flame/output/registry.py - Verb registry → Full writer: dispatches
src/dbx_flame/output/registry.py - Verb registry → Upsert writer: dispatches
src/dbx_flame/output/registry.py - Verb registry → SCD2 writer: dispatches
src/dbx_flame/output/registry.py - Verb registry → Complete-delta writer: dispatches
src/dbx_flame/output/registry.py - Pipeline runner → Write mechanics: prepares writes
src/dbx_flame/entrypoints/pipeline.py - Pipeline runner → Delta table config: configures target
src/dbx_flame/entrypoints/pipeline.py - Write mechanics → Platform policies: enforces constraints
src/dbx_flame/output/mechanics.py - Write mechanics → Write KPIs: records write metrics
src/dbx_flame/output/mechanics.py - Pipeline runner → Delta tables: writes batch
README.md - Delta table config → Delta tables: configures table
- Audit logger → Delta tables: writes audit trail
README.md - Delta table config → Table tagging: applies tags
src/dbx_flame/output/table_config.py