This release is a pre-release and may not be stable for production use.
stevin
Safe plan/apply migrations for Unity Catalog tables and schemas. Describe the tables you want in YAML or SQL, see what it takes to get a live catalog there — which changes are free, which rewrite 400 GB, which destroy something — and then apply it.
Alpha. Every release so far is a pre-release, and the spec format may still change before the first stable one. Try it on a dev catalog before production. The changelog says what each release changed and what to do about it.
Why
Every workspace has tables that nobody's pipeline owns: the table a notebook appends
to, the lookup table, the table another system writes into. Someone made each once, with
a CREATE TABLE in a notebook, and changing one is another notebook, run by hand, once
per environment. Who may see them is set the same way.
stevin keeps those tables, and the access around them, as specs in git. A change is a plan in a pull request: which changes are metadata only, which rebuild the table, which destroy something. A change made by hand shows up as drift. dbt, Lakeflow or SQLMesh own what they build, and stevin leaves that alone.
Unity Catalog is the state: there is no state file. A table holds data, so a change is
an ALTER wherever Delta allows one and never a drop and a recreate, which is
why Terraform is not the tool for tables.
Install
uvx --prerelease allow stevin --version # run it once, nothing installed
uv tool install --prerelease allow stevin # or keep it
Every release so far is a pre-release, which installers skip unless asked: hence the
flag. pip install --pre stevin works too.
Quickstart
mkdir crm-tables && cd crm-tables
stevin import main.crm # a spec per table, and a stevin.yml with one target
stevin plan # what it would do; nothing is touched
stevin apply # the same plan: shown, asked about, then run
Then change a table by editing its spec, and stevin apply again.
In CI, the Action comments the plan on a pull request:
- uses: kostavo-oss/tools/packages/stevin@stevin-v0
with:
target: prod # comments the plan on the pull request
The docs
How to use it is in the docs, and only there:
- Get started: those ten minutes on your own workspace, every step shown. A tour takes one project from nothing to a reviewed pull request.
- Writing a spec, in YAML or SQL, and every kind of change with its spec and its plan.
- Commands, and stevin as a library.
- The safety model: what stevin
touches, what a step may cost, and what
applypromises. - In CI: plan on pull requests, apply on merge, catch drift nightly. From a job where CI cannot reach the workspace.
- With an Asset Bundle, next to dbt, dlt, Lakeflow and Terraform, tables your notebooks write, and three access recipes.
- How it works: the pipeline, the model, what a plan holds, how ownership is known.
What must be true of the code is in RULES.md, why it is so in DECISIONS.md, and how to contribute in CONTRIBUTING.md.
How it is tested
Offline, against a fake warehouse that interprets the SQL stevin sends. And by a live
suite that runs what stevin assumes about Databricks against a real workspace: it has
settled most of those assumptions and not all of them. stevin verify runs the same
assumptions in a workspace of your own.
How it is tested says what each layer proves and lists what is still open.
What it will not do
The scope is closed. stevin does not:
- manage ABAC policies. Those are written in Terraform or SQL, and stevin reads them;
- create catalogs, external tables, governed-tag definitions, groups or service principals. Those are the platform's, and Terraform's;
- decide who may have what. It has no rules, no approvals and no policy engine: it puts in place what a spec says;
- check data quality or service levels;
- manage materialized views and streaming tables. Those are their pipeline's;
- shape a table another tool builds, or detect a Lakeflow pipeline's tables by itself;
- run from a notebook. It applies from CI, or as a job task where CI can't reach the workspace;
- run SQL of your own around a change, or keep SQL functions that no mask or row filter names. Both left in 0.4.0.
A request for one of these is a snippet in your own repository, not a feature. Next to other tools draws the line per tool.
When you no longer need it
When an Asset Bundle has a table resource that plans changes to a live table — which are free, which rewrite it, which destroy something — use that. Today a bundle declares schemas and volumes, and no tables.
Where it fits
stevin is one of the Kostavo tools: small tools for the ugly gaps on Databricks, one gap each. Its gap is the table nobody's pipeline owns: the table a notebook appends to, the lookup table, the table another system writes into, and who may see them. Each works alone. Kostavo is the company behind them: it builds a governance platform for Databricks workspaces, and the tools are complete without it.
Community project, not affiliated with or endorsed by Databricks.
Named after
Simon Stevin (1548–1620), engineer and mathematician: he designed sluices and introduced decimal notation. Precision before action, which is what a plan is.
Up to 0.2.0a4 stevin was called deltaplan. That command and a deltaplan.yml still
work: coming from deltaplan
says what changed and what didn't.
License
Metadata
Release files for stevin 0.4.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stevin-0.4.0a2.tar.gz | 539.8 kB | Without provenance | Details for stevin-0.4.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stevin-0.4.0a2-py3-none-any.whl | Python 3 | none | any | Details for stevin-0.4.0a2-py3-none-any.whl |
Total release size: 819.2 kB
Release files / stevin-0.4.0a2.tar.gz
| Download URL | stevin-0.4.0a2.tar.gz |
|---|---|
| Size | 539.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3634620ddfd04c552eca8a2ed6585e0480f2371e8b4f113512fe20266dc5da36
|
|
BLAKE2b-256 checksum How to use checksums |
066c78077377c1a4e9edc0718a6c1457007f5c21b6490a956d5644b443e963c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / stevin-0.4.0a2-py3-none-any.whl
| Download URL | stevin-0.4.0a2-py3-none-any.whl |
|---|---|
| Size | 279.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08a25bf0c07b1cd46f8e511e81d3134f9da62de45729c4936692096b228f66ea
|
|
BLAKE2b-256 checksum How to use checksums |
b9fe59feaa5df9e4ca95869cc07805a9b48ffc5aa7572a4c737f88f4fc87aa39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for stevin 0.4.0a2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.