How maclin-oss/dfflow works
dfflow is an observability-first engine for transforming pandas DataFrames. A user supplies a DataFrame and configures a FlowPipeline with steps and conditional branches; running it applies transformations, optionally caches unchanged inputs, logs progress, and reports per-step data changes before returning the result. Separate capabilities include built-in cleaning steps, profiling, and ASCII pipeline visualization. The execution, diff, formatter, logger, hashing, decorator, and visualization relationships are supported by the sampled source; the profiler is documented and indexed but its implementation was not sampled.
Main entry points: pipeline.py FlowPipeline · cleaning.py Cleaning steps · observability_formatter.py Report formatter · step_decorator.py Step decorator
Components 15
Pipeline execution
- FlowPipeline
dfflow/core/pipeline.py - Step
dfflow/core/step.py - Branch
dfflow/core/branch.py - Step errors
dfflow/core/exceptions.py
Transformation tools
- Step decorator
dfflow/decorators/step_decorator.py - Cleaning steps
dfflow/steps/cleaning.py - Content hashing
dfflow/utils/hashing.py
Observability
- DataFrame diffs
dfflow/diff/dataframe_diff.py - Report formatter
dfflow/diff/observability_formatter.py - DFLogger
dfflow/logging/logger.py - DataProfiler
dfflow/profiling/profiler.py
Pipeline interfaces
- Pipeline visualizer
dfflow/viz/pipeline_viz.py
Other components
- Pipeline user
- Input DataFrame
- Result DataFrame
Connections 17
- Pipeline user → Input DataFrame: provides
README.md - Pipeline user → FlowPipeline: configures
README.md - Input DataFrame → FlowPipeline: runs
README.md - FlowPipeline → Step: executes
dfflow/core/pipeline.py - FlowPipeline → Branch: evaluates
dfflow/core/pipeline.py - FlowPipeline → Content hashing: hashes inputs
dfflow/core/pipeline.py - FlowPipeline → Report formatter: formats reports
dfflow/core/pipeline.py - FlowPipeline → DFLogger: writes progress
dfflow/core/pipeline.py - FlowPipeline → Step errors: raises
dfflow/core/pipeline.py - Report formatter → DataFrame diffs: computes metrics
dfflow/diff/observability_formatter.py - Cleaning steps → Step decorator: uses
dfflow/steps/cleaning.py - FlowPipeline → Step decorator: reads metadata
dfflow/core/pipeline.py - FlowPipeline → Pipeline visualizer: renders structure
dfflow/core/pipeline.py - FlowPipeline → Result DataFrame: returns
README.md - Pipeline user → Cleaning steps: adds steps
README.md - Pipeline user → DataProfiler: profiles data
README.md - Pipeline user → Pipeline visualizer: requests diagram
README.md