Framework for defining, validating, and evolving tables in a consistent, safe, and controlled way.
Project description
delta-engine
Declarative schema management for Delta Lake tables on Databricks. Define the schema you want; the engine plans, validates, and applies the DDL.
Quickstart
from delta_engine.databricks import build_engine
from delta_engine.schema import Column, DeltaTable, Integer, String
customers = DeltaTable(
catalog="dev",
schema="silver",
name="customers",
columns=[
Column("id", Integer()),
Column("name", String()),
],
)
engine = build_engine(spark)
engine.sync(customers) # creates the table, or no-ops if it already matches
How-to guides
- Getting started — define a table and run your first sync
- Handle sync failures — inspect
SyncReportand act on each status - Configure table properties —
Propertyenum, defaults, overrides
Reference
- Data types — supported types and Spark SQL equivalents
- Safe-change rules — changes the engine blocks at validation
- API reference — full public API
Developer
- Architecture — layers, design decisions, why hexagonal
- Implement a custom adapter —
CatalogStateReaderandPlanExecutorprotocols - Add a new action type — extend
Action,ActionPhase, and the compiler
Contributing
Commit messages and PR titles follow Conventional Commits; the PR title drives the automated version bump and changelog. To lint your commit messages locally, run this once after cloning:
uv run pre-commit install --hook-type commit-msg
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file delta_engine-0.1.0.tar.gz.
File metadata
- Download URL: delta_engine-0.1.0.tar.gz
- Upload date:
- Size: 250.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
448d97af85a20320d6d6432f2b0ff1f3870a9da0fb353762f5371a9be1687133
|
|
| MD5 |
75c18f500a7739109896a6b7cc1dd3c1
|
|
| BLAKE2b-256 |
e27b927faee758e55e7346ea7fa3fa93ab50cea0b7c5e3650ed7cd4a1df72b07
|
Provenance
The following attestation bundles were made for delta_engine-0.1.0.tar.gz:
Publisher:
release.yaml on Tomoscorbin/delta-engine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
delta_engine-0.1.0.tar.gz -
Subject digest:
448d97af85a20320d6d6432f2b0ff1f3870a9da0fb353762f5371a9be1687133 - Sigstore transparency entry: 2118978362
- Sigstore integration time:
-
Permalink:
Tomoscorbin/delta-engine@3ac81e8ee53b31f5c9ae6fcf201a7d1b4ad1c844 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Tomoscorbin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@3ac81e8ee53b31f5c9ae6fcf201a7d1b4ad1c844 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file delta_engine-0.1.0-py3-none-any.whl.
File metadata
- Download URL: delta_engine-0.1.0-py3-none-any.whl
- Upload date:
- Size: 74.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a09304043359388d268ed49eabfbfef7d38896eec533ddec1fee44048fe81078
|
|
| MD5 |
5ea65492748aa1b809ecab88917c5290
|
|
| BLAKE2b-256 |
1ed5d3ff39229f8f2e81c5524c92e8d1f19534148be7a38c69f19b748527ab2e
|
Provenance
The following attestation bundles were made for delta_engine-0.1.0-py3-none-any.whl:
Publisher:
release.yaml on Tomoscorbin/delta-engine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
delta_engine-0.1.0-py3-none-any.whl -
Subject digest:
a09304043359388d268ed49eabfbfef7d38896eec533ddec1fee44048fe81078 - Sigstore transparency entry: 2118978524
- Sigstore integration time:
-
Permalink:
Tomoscorbin/delta-engine@3ac81e8ee53b31f5c9ae6fcf201a7d1b4ad1c844 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Tomoscorbin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@3ac81e8ee53b31f5c9ae6fcf201a7d1b4ad1c844 -
Trigger Event:
workflow_dispatch
-
Statement type: