Fluvv
The contract is the product.
One contract per table describes the table and how it's built. A Fluvv
contract is an ODCS v3.1.0
data contract (schema, quality rules, owners, SLAs) plus a few
customProperties that say where the table's data comes from and the SQL
that produces it. Every Fluvv contract is valid ODCS.
This package is the open-source core: the contract format and its JSON Schemas, and the tooling to lint, compile and export contracts. It runs without Spark, Java or a server.
Install
pip install fluvv
A contract
A repository keeps one contract per table at
contracts/<layer>/<domain>/<table>.yaml, and the things contracts share
(domains, glossaries, and ODPS v1.1.0 data products) under governance/.
Abridged:
apiVersion: v3.1.0
kind: DataContract
id: silver.sales.cars
name: sales_cars_silver
domain: sales # defined in governance/domains/sales.yaml
schema:
- name: sales_cars_silver
properties:
- name: order_id
businessName: OrderId # a term in governance/glossaries/sales.yaml
primaryKey: true
logicalType: string
customProperties:
- property: medallionLayer
value: silver
- property: sources # where the data comes from
value:
- id: sales_cars_bronze
contract: contracts/bronze/sales/cars.yaml
read: spark_read_file
- property: transform # how the table is built
value:
engine: pyspark-sql
sql: |
SELECT order_id, ... FROM sales_cars_bronze
- property: ingestion_config
value:
write: spark_write_file
Lint, compile, export
fluvv lint # every contract and governance file; or name files/folders
fluvv compile # references between files, then -> target/manifest.json
fluvv export contracts/silver/sales/cars.yaml # Spark schema + resolved ingestion config
fluvv list contracts --layer gold # also: list domains | products | terms | columns
fluvv show gold.sales.cars # one contract, data product, domain or term, in full
fluvv impact silver.sales.cars.price # what's downstream of a table or column, and who owns it
lint checks each file on its own: its JSON Schema, then what a schema
can't express, such as transform SQL that reads only declared sources. It
needs nothing but the file, so it runs anywhere. compile checks that the
repository's files fit together (domains, glossary terms, upstream
contracts and relationships all resolve) and then writes one manifest
with every contract, the governance around it, and table- and
column-level lineage derived from the transforms. If a reference is
broken, it lists every one and writes nothing. list, show and
impact print what that manifest holds: who owns which domain, data
product and contract, what each glossary term means and which columns use
it, where personal data is (list columns --classification pii), and
what a change would reach downstream.
In Python
from fluvv import Contract
contract = Contract("contracts/silver/sales/cars.yaml")
contract.lint().passed # True
contract.test().result # the table against the contract's schema and quality rules
contract.lineage() # {'upstream': ['bronze.sales.cars'], 'downstream': [...]}
from fluvv import Project
project = Project() # the repository here, compiled
project.contracts(layer="gold", owner="sales-analytics-team")
project.columns(classification=("pii", "sensitive-pii"))
project.impact("silver.sales.cars.price") # [{'contract': 'gold.sales.cars', 'column': 'average_sale_price', 'via': [...]}, ...]
Running contracts
Building the tables on Spark and Delta Lake, keeping their run records and
publishing them to OpenMetadata is Fluvv Engine.
It installs on top of this package and adds ingest and the catalog
commands to the same fluvv CLI.
Versioning
Releases follow semantic versioning. Within a major version, everything below keeps working as it does; anything not listed is internal and may change in any release. Adding a parameter with a default, a command option or a manifest key isn't a breaking change.
- The
fluvvCLI's commands and options. - The contract and governance file formats, versioned by the spec.
- The manifest:
manifestVersionstays"2"and keys are only added. - Everything
fluvvexports (fluvv.__all__), includingProject's methods and the manifest entries they return,Contract'spath,docandid, andfluvv.product.EngineRequiredError. - For packages building on fluvv, such as Fluvv Engine, which relies on
nothing else and so works with any fluvv of its major version:
fluvv.contract:find_repo_root,load_odcs_document,parse_extension,resolve_extension,get_custom_property,RepoRootNotFoundErrorfluvv.governance:load_contracts,schema_object,columns,primary_key,owner,medallion_layer,sla_entry,retention_period,freshness_period,freshness_hoursfluvv.manifest:compile_manifest,write_manifest,load_manifest,check_fresh,read_or_compile,StaleManifestErrorfluvv.lineage:combine_sqlfluvv.semantic:ProjectCheckError- The
fluvv.commandsentry point: aregister(app)function, given the CLI's Typer app, that adds commands to it.
Documentation
- The spec: the contract format, governance files, lint codes and manifest.
- fluvv.se/docs: guides and reference.
- fluvv-example: a complete repository to clone, from landing CSVs to gold tables in ten contracts.
License
Metadata
Release files for fluvv 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fluvv-1.2.0.tar.gz | 84.6 kB | With provenance | Details for fluvv-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fluvv-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for fluvv-1.2.0-py3-none-any.whl |
Total release size: 140.7 kB
Release files / fluvv-1.2.0.tar.gz
| Download URL | fluvv-1.2.0.tar.gz |
|---|---|
| Size | 84.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d68bc2e89e262651276c3c579082ba4fea477e5173ce514a692468f22225da3
|
|
BLAKE2b-256 checksum How to use checksums |
6219cb30727d8b4684f20ec63419c915dd3768bcde1696944e4f85a6e04af39a
|
| 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 5, 2026.
Transparency logRelease files / fluvv-1.2.0-py3-none-any.whl
| Download URL | fluvv-1.2.0-py3-none-any.whl |
|---|---|
| Size | 56.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a416f79c09bb58df7eb433a8b19ac3472bd7f353dd5357c5be616e43425a38ee
|
|
BLAKE2b-256 checksum How to use checksums |
bd58157f814454e7a4f6c759ae58c2cfd282d8bfb0b1515633d2509a4d5df8c6
|
| 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 5, 2026.
Transparency logSecurity for fluvv 1.2.0
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.
Attestation for fluvv-1.2.0.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 5, 2026.
Transparency logA 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.