How arnavbits26/dataguard works
DataGuard is a multi-source transaction data-governance pipeline. Its main workflow reads raw feeds, tags and standardizes them to a canonical schema, unions them, scores records against quality rules, and writes governed and quarantined outputs plus quality and lineage reports. The repository also includes synthetic-feed generation and an optional BigQuery publishing path. The pipeline and key processing modules were excerpted; the BigQuery path is documented as unverified against a live project.
Main entry points: pipeline.py Pipeline orchestration · bigquery_sink.py BigQuery publishing · ingest.py Feed ingestion · standardize.py Schema standardization
Components 17
Feed inputs
- Synthetic feed generator
src/generate_data.py - Core banking feed
- Merchant partner feed
Data governance
- Feed ingestion
src/ingest.py - Schema standardization
src/standardize.py - Schema and rules config
src/config.py - Pipeline orchestration
src/pipeline.py - Quality checks and split
src/quality_rules.py - Governed records
- Quarantined records
Reports and lineage
- Quality reporting
src/quality_scorer.py - Quality report
- Lineage tracking
src/lineage.py - Lineage log
Optional publishing
- BigQuery publishing
src/bigquery_sink.py - BigQuery warehouse
Other components
- Pipeline operator
Connections 22
- Pipeline operator → Pipeline orchestration: runs
src/pipeline.py - Synthetic feed generator → Core banking feed: generates
src/generate_data.py - Synthetic feed generator → Merchant partner feed: generates
src/generate_data.py - Core banking feed → Feed ingestion: raw CSV
README.md - Merchant partner feed → Feed ingestion: raw CSV
README.md - Pipeline orchestration → Feed ingestion: calls
src/pipeline.py - Feed ingestion → Schema standardization: returns tagged rows
README.md - Pipeline orchestration → Schema standardization: calls
src/pipeline.py - Schema standardization → Schema and rules config: uses mappings
src/standardize.py - Pipeline orchestration → Schema and rules config: uses paths and mappings
src/pipeline.py - Pipeline orchestration → Quality checks and split: scores and splits
src/pipeline.py - Quality checks and split → Schema and rules config: uses thresholds
src/quality_rules.py - Pipeline orchestration → Governed records: writes accepted rows
src/pipeline.py - Pipeline orchestration → Quarantined records: writes rejected rows
src/pipeline.py - Pipeline orchestration → Quality reporting: builds report
src/pipeline.py - Pipeline orchestration → Quality report: writes JSON
src/pipeline.py - Pipeline orchestration → Lineage tracking: logs stages
src/pipeline.py - Lineage tracking → Lineage log: writes JSON
src/lineage.py - Pipeline operator → BigQuery publishing: may invoke
src/bigquery_sink.py - BigQuery publishing → Pipeline orchestration: reruns workflow
src/bigquery_sink.py - BigQuery publishing → BigQuery warehouse: loads records and report
src/bigquery_sink.py - BigQuery publishing → Quality reporting: builds report
src/bigquery_sink.py