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 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
fluvv show gold.sales.cars                     # one contract, data product, domain or term, in full

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 and show print what that manifest holds: who owns which domain, data product and contract, what each glossary term means and which columns use it.

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': [...]}

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.

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

Apache-2.0. See LICENSE and NOTICE.

Metadata

Release files for fluvv 1.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 1.1.0
File Size Uploaded Provenance Actions
fluvv-1.1.0.tar.gz 76.2 kB With provenance Details for fluvv-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 128.4 kB

Release files / fluvv-1.1.0.tar.gz

Download URL fluvv-1.1.0.tar.gz
Size 76.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bb7277741bd61391911d7aad08e2576536dd0d974b029ab8c38afc16daed5f9f
BLAKE2b-256 checksum
How to use checksums
08df11019ce4227f9517eaa4d0aa89bda0ad09fa2616d2a3d8ac4be9f6c9cdfe
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 4, 2026.

Transparency log

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

Download URL fluvv-1.1.0-py3-none-any.whl
Size 52.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
129dd772b0fefdbbe939941b12066c27671449c6e11ac2b906df02f55f1f155d
BLAKE2b-256 checksum
How to use checksums
551037719e983fe17c1d4d546646d73eb99be7d92cc57223b132f183e939f0a2
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 4, 2026.

Transparency log

Security for fluvv 1.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-1.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 4, 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