Skip to main content

empirical-data-contracts

Small shared schemas for empirical data pipelines. This package intentionally has no pandas, GeoPandas, DuckDB, raster, or FCV dependencies.

The contracts define identity, provenance, grain, geography, time, coverage, measurement state, QA, and run manifests. Persisted dataset schemas remain source-specific; these contracts form the common envelope around them.

Installation

Once a release is published on PyPI, downstream repositories can install the package directly:

python -m pip install empirical-data-contracts

For consumers that want the compatible 0.1.x contract line without automatically crossing a minor-version boundary:

python -m pip install "empirical-data-contracts>=0.1,<0.2"

The import package is empirical_contracts.

Compatibility and versioning

The package follows semantic versioning, and serialized JSON is part of the public contract. Field names, field types, defaults, and serialized enum values should therefore be treated as compatibility-sensitive.

  • Patch releases may fix implementation defects, tests, or documentation without changing the accepted or serialized contract.
  • Minor releases may add new models or backward-compatible optional fields with defaults. They should preserve round-tripping of payloads valid under the previous minor release.
  • Major releases are required for incompatible serialization or validation changes, including renaming or removing fields, changing field meaning or type, changing serialized enum values, or newly rejecting payloads that were previously valid.

Persisted dataset schemas are versioned independently through DatasetRef.schema_version. A producing package records its own release in RunManifest.package_version; source releases and snapshot identifiers remain separate provenance dimensions.

When compatibility cannot be preserved, prefer an explicit migration path over silent reinterpretation. In particular, row absence must not be reinterpreted as zero unless a coverage contract explicitly declares zero_within_verified_coverage.

See RELEASE.md for the human-controlled release procedure and PyPI Trusted Publishing setup.

Metadata

Release files for empirical-data-contracts 0.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 empirical-data-contracts 0.1.0
File Size Uploaded
empirical_data_contracts-0.1.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for empirical-data-contracts 0.1.0
File Interpreter ABI Platform
empirical_data_contracts-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / empirical_data_contracts-0.1.0.tar.gz

Download URL empirical_data_contracts-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bb3bfe999c30e77a221c724a9d30eb1e344ccb20a3502787f1efe91c97b21116
BLAKE2b-256 checksum
How to use checksums
a156f717e07f541d36603b0cf411591465d01e58bae72bd19d4727571d59c127
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 22, 2026.

Transparency log

Release files / empirical_data_contracts-0.1.0-py3-none-any.whl

Download URL empirical_data_contracts-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbd0f170e6085441c00939e27da8356b432ee7a1b1ddf495f6d316f4a201a62f
BLAKE2b-256 checksum
How to use checksums
ce9abb35e358b15708d7f1c34db9a3bf73612fe4a4f0b608d6793765f9ef0dcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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