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.3.0.tar.gz (17.7 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.3.0-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: just_dna_format-0.3.0.tar.gz
  • Upload date:
  • Size: 17.7 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.3.0.tar.gz
Algorithm Hash digest
SHA256 ef8f7e512ef6846ae9994bed69f7d06998bce244c2606c2337a3a355c0661aa4
MD5 3e0b946aa608814fdeda3a2e17445a69
BLAKE2b-256 c866cd03b88382d40bb2f270f274f296bbf22cbecb74f82aded1cd0d444fcfcc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: just_dna_format-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 22.2 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e2e0115f6af8b7790383b0aa9994804322577c3f88fbf35c3e64e4bd7c9bb4f
MD5 277445970f7f8908a28c7251a6c7e389
BLAKE2b-256 8405a3968ac45a003d2c698827bc64525d870774b01ca7e3ab13da0bf5ee0ffe

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