Data Contract Framework
Complete data contract implementation with YAML spec, CLI generator, schema validation, SLA monitoring, and breaking change detection.
📁 File Structure 17 files
📖 Documentation Preview README excerpt
Data Contract Framework
Product by [Datanest Digital](https://datanest.dev)
A production-ready framework for defining, validating, and monitoring data contracts across
your data platform. Enforce schema guarantees, SLA compliance, and breaking change detection
with a structured, version-controlled approach to data ownership.
What's Included
| Component | Description |
|---|---|
| spec/ | YAML-based contract specification format with example contracts |
| cli/ | Command-line tools for generating and validating contracts |
| notebooks/ | Databricks notebooks for SLA monitoring, breaking change detection, and compliance dashboards |
| registry/ | Contract catalog with full versioning and search support |
| templates/ | Ready-to-use contract templates and producer/consumer agreement |
| guides/ | Step-by-step implementation guide |
Quick Start
1. Define a Contract
contract:
name: customer_events
version: 1.0.0
owner:
team: data-engineering
contact: team-lead@company.com
schema:
fields:
- name: event_id
type: string
required: true
description: Unique event identifier
- name: event_timestamp
type: timestamp
required: true
description: UTC timestamp of the event
sla:
freshness:
max_delay_minutes: 30
completeness:
min_percentage: 99.5
2. Generate Contracts from Existing Tables
python cli/contract_generator.py \
--catalog main \
--schema analytics \
--table customer_events \
--output spec/example_contracts/
3. Validate Data Against Contracts
*... continues with setup instructions, usage examples, and more.*