Skip to main content

Declarative schema + integrity contract for just-dna annotation modules (DSL spec, manifest, digests)

Project description

just-dna-module

The declarative manifest contract and integrity primitives for just-dna annotation modules. Dependency-light (Pydantic + stdlib only) so it can be shared as the single source of truth by both:

  • just-dna-pipelinesemits manifest.json when it compiles a module, and
  • just-dna-marketplaceindexes, serves, and verifies those manifests.

Keeping the contract in one small package prevents the two sides from drifting.

What's here

Module Contents
just_dna_format.manifest ModuleManifest + sub-models (Identity, Display, Stats, Compilation, FileEntry, Artifact); read_manifest / write_manifest. Mirrors the marketplace SPEC §4.
just_dna_format.integrity sha256_file, artifact_digest (canonical Merkle root), build_artifact, verify_manifest (verify-then-install), IntegrityError. SPEC §5.
just_dna_format.identity Name/namespace rules, canonical_id, SemVer Version + parse_version, version_from_legacy (vN → N.0.0), latest. SPEC §6.

Usage

from just_dna_format.manifest import ModuleManifest, read_manifest
from just_dna_format.integrity import build_artifact, verify_manifest

# Compiler side: hash outputs and record the digest.
artifact = build_artifact(output_dir, ["weights.parquet", "annotations.parquet", "studies.parquet"])

# Downloader side: verify before installing (raises IntegrityError on any mismatch).
verify_manifest(module_dir, read_manifest(module_dir / "manifest.json"))

All hashes are SHA-256, lowercase hex, prefixed sha256:. The artifact.digest is a Merkle-style root over the canonical file listing — verifying it verifies the whole set and is the version's immutable content identity.

Develop

uv sync
uv run pytest -vvv

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

just_dna_format-0.2.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

just_dna_format-0.2.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file just_dna_format-0.2.0.tar.gz.

File metadata

  • Download URL: just_dna_format-0.2.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for just_dna_format-0.2.0.tar.gz
Algorithm Hash digest
SHA256 96685e7d8fb969865df52dd01fa4413063bce956e7cb3d0422a6c8c39a0fd0e2
MD5 0b46fa589efd96fbf8781acbcb3afa3f
BLAKE2b-256 cd3da83a32d4abdd2e9f0908b7c6a1d7352abef5961f012deb58a5bcf93b7727

See more details on using hashes here.

File details

Details for the file just_dna_format-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: just_dna_format-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for just_dna_format-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eea2bcc0525cacd9992c786506ab40f968fa5b802dda2b0d40e4eef5e5cb54bf
MD5 447c691d537328c3bd922e9e20f03e0f
BLAKE2b-256 71fe7246999c507cda013aff9789f212b38762b82b8f0bdd258e767863673a96

See more details on using hashes here.

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