Skip to main content
Pre-release

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.

ci Docs Python License: Apache-2.0 Ruff

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.

A stevin plan: a rename, a widening, a backfilled NOT NULL column, a nested field, a CHECK and a grant, each with its numbered, risk-labelled steps

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:

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

Apache-2.0.

Metadata

Release files for stevin 0.4.0a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stevin 0.4.0a3
File Size Uploaded Provenance Actions
stevin-0.4.0a3.tar.gz 542.5 kB Without provenance Details for stevin-0.4.0a3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stevin 0.4.0a3
File Interpreter ABI Platform Actions
stevin-0.4.0a3-py3-none-any.whl Python 3 none any Details for stevin-0.4.0a3-py3-none-any.whl

Total release size: 822.8 kB

Release files / stevin-0.4.0a3.tar.gz

Download URL stevin-0.4.0a3.tar.gz
Size 542.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eaad27b886a2c26ff2242da4528efd67e69f3d989659714ba9999a0edfe7a749
BLAKE2b-256 checksum
How to use checksums
f0965925585c703c32f8e1f8d6ab3acb6680ebc18c6051bf7c5c024502cb1a69
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.0a3-py3-none-any.whl

Download URL stevin-0.4.0a3-py3-none-any.whl
Size 280.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a85c8634cb7a80549e4edd4440628030652b324a3b0f3af22149336c1242ae3
BLAKE2b-256 checksum
How to use checksums
23ac7ae4c6654ccb5074a0ef8c9bfbb7a5e95e9c6ff71dcf9baed11beca3b440
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.0a3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page