Skip to main content

vibedata-odcs

Data-contract tooling for Open Data Contract Standard (ODCS v3.2.0) contracts at a VibeData Domain's boundary. One library and one vibedata-odcs command, shared by the Build agent's data-contract skills, Domain CI's logical-model gate, and Studio. It replaces the odcs.py script that was copied into each of them.

pip install vibedata-odcs                      # check, generate, diff, results, version
pip install "vibedata-odcs[engine-duckdb]"     # adds the DuckDB driver: profile, check --relations, reverse, export on a local file
pip install "vibedata-odcs[engine-databricks]" # the same on Databricks (engine-sqlserver for a Fabric warehouse, engine-redshift for Redshift, engine-snowflake for Snowflake)
pip install "vibedata-odcs[warehouse]"         # adds duckdb for reverse and the undeclared-columns check on a local file

datacontract-cli (MIT) is a core dependency: diff and the engine adapter (vibedata.odcs.engine) use it. The engine-* extras add the driver for the platform the checks run against.

Run from the Domain's repository root:

Command What it does Reads a warehouse
vibedata-odcs check schema and structure of the committed contracts, one per boundary relation, agreement with the canonical model no
vibedata-odcs check --relations adds the comparison against the built relation: the engine's presence and type checks, plus the columns the contract does not declare (or names only, against dbt's catalog.json) yes
vibedata-odcs reverse [--force] drafts the boundary's contracts from a built warehouse (a local file, or Databricks, Fabric, Redshift and Snowflake through the engine's importers), with the open questions as findings yes
vibedata-odcs generate writes the dbt keys and the dlt COLUMNS hints from the contracts no
vibedata-odcs diff <base-ref> classifies each changed contract against a git base and requires the version bump it needs no
vibedata-odcs profile [--relation S.T] tests each contract's checks (key, required, library rules, relationships) against the built relation, through the engine yes
vibedata-odcs export <format> --out DIR renders each contract as sql, jsonschema, avro, html or mermaid, through the engine no
vibedata-odcs results <run_results.json> maps a dbt run's test results to the contract assertions they enforce (JSON lines) no
vibedata-odcs version package, standard and pinned-schema versions no

Diagnostics are JSON on stdout. The exit code is 0 when there are no errors (warnings are allowed) and 1 otherwise. That JSON, its diagnostic code values and the exit codes are the public API this package versions (see CHANGELOG.md).

The console script is vibedata-odcs, prefixed so it cannot collide with another tool's odcs in a shared environment; python -m vibedata.odcs is the same command.

The warehouse

--catalog PATH names the local database file (or dbt's catalog.json for check --relations). Without it, the command asks the installed destination resolver. The library ships none, because it knows no platform. A caller that knows the Intent's platform passes one:

from vibedata.odcs.cli import main

main(destination_resolver=lambda repo_map: {"family": "duckdb", "path": "/sandbox.duckdb", "platform": "duckdb_local"})

The resolver returns the platform's coordinates; the engine builds its native server block from them at run time, so a committed contract keeps type: custom and carries no environment coordinate. family (or the platform's leading word) picks the engine: duckdb (path: a local file, or md:<database> for MotherDuck, signed in by the environment's motherduck_token), databricks (host, catalog) sqlserver, which is how a Fabric warehouse or a Lakehouse's SQL endpoint is read (host, database, optional authentication, set as DATACONTRACT_SQLSERVER_AUTHENTICATION; the driver is ODBC Driver 18 for SQL Server unless DATACONTRACT_SQLSERVER_DRIVER names another, and an Entra ID access token in VIBEDATA_ODCS_SQLSERVER_ACCESS_TOKEN signs in through the engine's cli login when no authentication is stated), or redshift (host, database, optional port; an optional user, sslmode and authentication become DATACONTRACT_REDSHIFT_USERNAME, _SSLMODE and _AUTHENTICATION, and the password stays in DATACONTRACT_REDSHIFT_PASSWORD, or IAM mints one), or snowflake (account, or a host ending in .snowflakecomputing.com from which the account is taken, and database; an optional user, authenticator, token_file_path, role and warehouse become DATACONTRACT_SNOWFLAKE_USERNAME, _AUTHENTICATOR, _TOKEN_FILE_PATH, _ROLE and _WAREHOUSE; a user's OAuth access token is handed over as the file token_file_path names, never as a value). The schema is the relation's own. Credentials stay in the environment, as datacontract-cli reads them. A physicalType is dropped before testing when the run's platform is not the contract's, so a contract written on DuckDB compares logical types on Databricks.

With no resolver and no --catalog, a warehouse command refuses with catalog/missing rather than passing silently.

The resolver is process-wide state: every main() call sets it, None included, so a long-lived process that calls main() repeatedly passes the resolver it wants on each call.

Vendored schema

src/vibedata/odcs/schemas/ holds the pinned ODCS JSON schema; see its README for provenance. Validation never fetches, so check runs offline.

Metadata

Release files for vibedata-odcs 0.2.8

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

Source distribution (sdist)

Source distribution for vibedata-odcs 0.2.8
File Size Uploaded Provenance Actions
vibedata_odcs-0.2.8.tar.gz 135.6 kB With provenance Details for vibedata_odcs-0.2.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vibedata-odcs 0.2.8
File Interpreter ABI Platform Actions
vibedata_odcs-0.2.8-py3-none-any.whl Python 3 none any Details for vibedata_odcs-0.2.8-py3-none-any.whl

Total release size: 227.9 kB

Release files / vibedata_odcs-0.2.8.tar.gz

Download URL vibedata_odcs-0.2.8.tar.gz
Size 135.6 kB
Tags Source
SHA-256 checksum
How to use checksums
027c57ac0543258c7d72d4d7a161ab811eff2b6916cd48bb09e00d0f0a401886
BLAKE2b-256 checksum
How to use checksums
112f939d997dfba6283550f2fc5f8f7766ef82f1b31cbbd45c5fe9a880dfa929
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 19, 2026.

Transparency log

Release files / vibedata_odcs-0.2.8-py3-none-any.whl

Download URL vibedata_odcs-0.2.8-py3-none-any.whl
Size 92.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8df4099bcbe35dfe61f7f3f822ba24ca6a70a72d6bf40b89ec32ce80ad10dc62
BLAKE2b-256 checksum
How to use checksums
ce2af40e4d7e279832caf2d01f73dc751bc31f064565f996e0890ce348fe0986
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 19, 2026.

Transparency log

Security for vibedata-odcs 0.2.8

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vibedata_odcs-0.2.8.tar.gz

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 Nov 19, 2026.

Transparency log

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