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.0a4

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.0a4
File Size Uploaded Provenance Actions
stevin-0.4.0a4.tar.gz 550.1 kB Without provenance Details for stevin-0.4.0a4.tar.gz

Built distribution (wheel)

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

Total release size: 833.7 kB

Release files / stevin-0.4.0a4.tar.gz

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

Download URL stevin-0.4.0a4-py3-none-any.whl
Size 283.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec514917d6ec524a3dbec410d576513b85493a150c974e2472f0696dd0be9321
BLAKE2b-256 checksum
How to use checksums
b62217d2481a8c955ee5f127c6bb466d4a78226f82ae3ddbf19106c7810bf969
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.0a4

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