Define and validate lakehouse data contracts in YAML. Includes a Python CLI, JSON Schema and AI agent integrations.
pip install open-lakehouse-contract==0.31.2 Copy PIP instructions
Open Lakehouse Contract An open standard for lakehouse data contracts in YAML.
Documentation · Quickstart · Contract reference · Compatibility evidence
Define your data's structure, quality rules, ownership and processing steps in one YAML file. Keep the contract in Git so people and AI agents can review changes before they are applied.
Use the included Python CLI to check that your contract follows the Open Lakehouse Contract (OLC) schema. Use LakeLogic Core to execute supported transformations and data quality checks.
version: 1.0.0 info: title: Orders table_name: orders model: fields: - name: order_id type: integer required: true quality: row_rules: - name: positive_order_id sql: "order_id > 0" Clone the repository, install the CLI and validate the example:
git clone https://github.com/LakeLogic/open-lakehouse-contract.git cd open-lakehouse-contract python -m pip install -e . olc validate examples/orders.olc.yaml The validator checks the contract's structure against the published JSON Schema; it does not check the dataset itself. It does not require a data engine or LakeLogic Core.
OLC is the standard. LakeLogic Core is the open-source reference runtime.
python -m pip install lakelogic from lakelogic import DataProcessor processor = DataProcessor("orders.olc.yaml", engine="duckdb", strict=True) accepted, quarantined = processor.run(source_df) You can use the OLC schema without LakeLogic Core, and another runtime may implement the same specification.
See the field reference for the complete vocabulary.
OLC separates portable contract intent from runtime and platform configuration. Support is demonstrated at different levels:
DuckDB and Polars run in the default executable-conformance suite. Other engines and platforms have their own stated scope and limitations. See the conformance suite and provider evidence matrix rather than assuming every engine × format × platform combination has identical coverage.
Contributions are welcome. Start with the contributing guide.
data-contracts lakehouse data-contract-validation schema-validation data-quality data-governance yaml json-schema cli odcs
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




