Skip to main content

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 anywhere under contracts/, and the things contracts share (domains, glossaries, and ODPS v1.1.0 data products) under governance/. Fluvv enforces what keeps it correct: references resolve, each contract has its own id and table, and sources don't form a cycle. Layers, naming and layout are yours to choose; the spec lists them. Abridged, with the choices the example repository makes:

apiVersion: v3.1.0
kind: DataContract
id: silver.sales.cars
name: sales_cars_silver
domain: sales                    # optional; 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: layer              # optional, and any name you like
    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 -> target/
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, classifications, upstream contracts and relationships all resolve, and no two contracts claim one id or table) 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 and keeping their run records is Fluvv Engine. It installs on top of this package and adds ingest to the same fluvv CLI. Publishing them to a metadata catalog is that catalog's adapter, a package installed beside the engine: fluvv-openmetadata for OpenMetadata, with which fluvv publish openmetadata (Contract.publish(spark, to="openmetadata")) publishes contracts and their run records.

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 fluvv CLI's commands and options.
  • The contract and governance file formats, versioned by the spec.
  • The manifest: manifestVersion stays "2" and keys are only added.
  • Everything fluvv exports (fluvv.__all__), including Project's methods and the manifest entries they return, Contract's path, doc, id and server, and fluvv.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, server_location, server_table, RepoRootNotFoundError
    • fluvv.governance: load_contracts, schema_object, columns, primary_key, owner, layer, sla_entry, retention_period, freshness_period, freshness_hours
    • fluvv.manifest: compile_manifest, write_manifest, load_manifest, check_fresh, read_or_compile, StaleManifestError
    • fluvv.lineage: combine_sql
    • fluvv.variables: environment, resolve_variables, choose_server, resolve_server_variables, resolve_contract, UnresolvedVariableError, UnknownServerError, InvalidVariableValueError
    • fluvv.semantic: ProjectCheckError
    • The fluvv.commands entry point: a register(app) function, given the CLI's Typer app, that adds commands to it.
    • The fluvv.publishers entry point, for a metadata catalog's adapter, named for its catalog: a module with publish(contract, spark, repo_root), which Contract.publish(spark, to=<name>) calls, and register(publish_app, prune_app), given the Typer apps of fluvv publish and fluvv prune, that adds a command named for the catalog to each.

Documentation

  • The spec: the contract format, governance files, lint codes and manifest.
  • fluvv.se/docs: guides and reference, including a page for each class and function in the Python API.
  • fluvv-example: a complete repository to clone, from landing CSVs to gold tables in ten contracts.

License

Apache-2.0. See LICENSE and NOTICE.

Metadata

Release files for fluvv 3.1.0

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

Source distribution (sdist)

Source distribution for fluvv 3.1.0
File Size Uploaded Provenance Actions
fluvv-3.1.0.tar.gz 130.0 kB With provenance Details for fluvv-3.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 211.9 kB

Release files / fluvv-3.1.0.tar.gz

Download URL fluvv-3.1.0.tar.gz
Size 130.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d9071c14941050775c332846449035fa64c3f03612b0fbe164cb78130f22a915
BLAKE2b-256 checksum
How to use checksums
5d4da1d2b9c0ec297070b920b263e155ba189df3c6123bdc39d2c57ef87b75bb
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 21, 2026.

Transparency log

Release files / fluvv-3.1.0-py3-none-any.whl

Download URL fluvv-3.1.0-py3-none-any.whl
Size 82.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0fa2c4187b1336e4b8a8d664f9413a9fbb2f0658bed5df6d8af4d0377621cf06
BLAKE2b-256 checksum
How to use checksums
c532482d516fd2317487933d26aee7bd3fefb58d5af5f94d9c0d7b5c5b964cc5
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 21, 2026.

Transparency log

Security for fluvv 3.1.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.

Select from 2 files

Attestation for fluvv-3.1.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 21, 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