Skip to main content

Strata — prototype

Declarative, versioned, immutable data transformations. Compiles to SQL (DuckDB/Postgres/BigQuery/Snowflake), with column-level lineage and 3-phase contract pins.

Working title v0.1 — prototype lives in prototype/. Spec in ../spec/.

Install (dev)

cd prototype
python -m venv .venv
.venv/bin/pip install -e ".[dev]"
strata --help

Or without venv after publish:

pip install strata-lang
strata --help

uv (standalone tool, no venv)

# from PyPI (once published) — package is strata-lang, entry point stays `strata`
uv tool install strata-lang
strata --help

# from Git (before PyPI, or dev)
uv tool install git+https://github.com/Tzinny-dev/strata --from prototype
strata --help

# upgrade
uv tool upgrade strata-lang
pip install --upgrade strata-lang

Quick start

# typecheck + contracts + lineage (no DB)
strata build examples/daily_orders.strata

# emit SQL for a dialect
strata compile examples/daily_orders.strata --dialect postgres

# materialize in DuckDB (with demo fixtures)
strata run examples/daily_orders.strata --seed -o /tmp/demo.duckdb
strata test examples/daily_orders.strata --seed

See docs/getting-started.md and docs/tutorial.md for the full walkthrough (every code block was run against the CLI before writing).

Warehouses

Warehouse SQL emit (compile --dialect) Engine run (run -o / exec) Driver
DuckDB DuckDBWarehouse + dbcompat (duckdb default dep) duckdb
Postgres cli.open_warehouse("postgres://...")dbcompat.PGConn (probado vs Postgres 16 efímero) — adapters.get_adapter("postgres") sigue stub E095 a propósito pip install strata[postgres]
BigQuery ❌ stub E095 pip install strata[bigquery]
Snowflake ❌ stub E095 pip install strata[snowflake]

Experimental modules

Module Status Notes
strata.integrations scaffolding only airflow_dag_factory/prefect_flow_factory return strings of Python source; airflow/prefect not installed by default (pip install strata[airflow] / [prefect]). No real DAG/flow is instantiated — see plan-hito-2.md §B.
strata.testing fixture helpers only create_test_source/FreshnessTestHelper emit .strata text or temp tables; not wired to the executor for e2e. Use strata.exec for real freshness gates.
strata.observability connected MetricsCollector is imported by strata.exec._run_locked and exposed via get_metrics(); exporters are formatters (Prometheus/StatsD/JSON) without external deps.

Docker

# from GHCR (after tag push v0.1.0 triggers docker.yml)
docker pull ghcr.io/tzinny-dev/strata:0.1.0
docker run --rm ghcr.io/tzinny-dev/strata:0.1.0 --help
docker run --rm -v $PWD:/work -w /work ghcr.io/tzinny-dev/strata:0.1.0 build examples/daily_orders.strata
docker run --rm -v $PWD:/work -w /work ghcr.io/tzinny-dev/strata:0.1.0 run examples/daily_orders.strata --seed -o /tmp/demo.duckdb

# local build (no docker daemon required on host for CI build via GHA)
docker build -t ghcr.io/tzinny-dev/strata:0.1.0 -f Dockerfile .

Development

.venv/bin/pytest -q
.venv/bin/pytest --cov=strata --cov-fail-under=80

Coverage gate: 80% (pyproject.toml / pytest.ini).

Release files for strata-lang 0.1.1

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

Source distribution (sdist)

Source distribution for strata-lang 0.1.1
File Size Uploaded
strata_lang-0.1.1.tar.gz 218.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for strata-lang 0.1.1
File Interpreter ABI Platform
strata_lang-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 371.0 kB

Release files / strata_lang-0.1.1.tar.gz

Download URL strata_lang-0.1.1.tar.gz
Size 218.7 kB
Tags Source
SHA-256 checksum
How to use checksums
48928565a0f86eb81187dc8236c760355fe7698c42c468c2ab0999243d62b951
BLAKE2b-256 checksum
How to use checksums
c43f5bea18aeb781a83820e0d570e1fc21c4677446d3266a9f52a13e0d7766eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / strata_lang-0.1.1-py3-none-any.whl

Download URL strata_lang-0.1.1-py3-none-any.whl
Size 152.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41994ac15542667623560efdff94d7798800c5cff453622a96a572bed5b5613f
BLAKE2b-256 checksum
How to use checksums
2f77d072d2316b003bddb6f7cde3601f1516ecd85b0517078694da32460be536
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

1 release file

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