Skip to main content

Shared result + provenance contract for the sleap-roots <-> Bloom pipeline.

Project description

sleap-roots-contracts

Shared result + provenance contract for the sleap-roots ↔ Bloom pipeline.

This is a small, dependency-light, Bloom-agnostic library that defines the shape of a per-scan pipeline result and its provenance (Pydantic v2 models), emits a versioned JSON Schema artifact, and ships a trait-definitions registry. The Python producers (sleap-roots-predict, sleap-roots-traits) import it; Bloom consumes the emitted schema.

It is sub-project #1 of the sleap-roots ↔ Bloom integration program. Design and plan: docs/01-contract-library-design.md and docs/02-contract-library-plan.md.

Develop

uv sync
uv run pytest -v
uv run black --check src tests && uv run ruff check src tests

Key ideas

  • Pydantic is canonical; schema/*.json is generated and drift-guarded in CI.
  • Trait values are long-format rows (no jsonb); provenance is a jsonb blob on the source.
  • Hashes (param_hash, idempotency_key) are producer-side only; Bloom treats them as opaque strings.
  • Distributed via PyPI (no Docker image — this is a library).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sleap_roots_contracts-0.1.0a0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sleap_roots_contracts-0.1.0a0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file sleap_roots_contracts-0.1.0a0.tar.gz.

File metadata

  • Download URL: sleap_roots_contracts-0.1.0a0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sleap_roots_contracts-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 195fb66ac2947630cd19bc5f515f8d3cfde5b47da6cc2370684c4e2bd47b17c0
MD5 5ac90cc34d0b992e0fd953d9fd5e340e
BLAKE2b-256 83df2e57792a67648d3f3a4643c997ba6e1439f46f895e8dfb56c478e81be583

See more details on using hashes here.

Provenance

The following attestation bundles were made for sleap_roots_contracts-0.1.0a0.tar.gz:

Publisher: publish.yml on talmolab/sleap-roots-contracts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sleap_roots_contracts-0.1.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for sleap_roots_contracts-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9c842cc95e8943b56ae65815071515b76933c54bb664b2def2a3eb5e639325b
MD5 37a1550a9defce41853d888ed527af7f
BLAKE2b-256 45aa3f50514c128aa86a5304ac7313e8c85f436d49e83c04986b5879a996e3af

See more details on using hashes here.

Provenance

The following attestation bundles were made for sleap_roots_contracts-0.1.0a0-py3-none-any.whl:

Publisher: publish.yml on talmolab/sleap-roots-contracts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page