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-pipelines— emitsmanifest.jsonwhen it compiles a module, andjust-dna-marketplace— indexes, 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file just_dna_format-0.1.0.tar.gz.
File metadata
- Download URL: just_dna_format-0.1.0.tar.gz
- Upload date:
- Size: 8.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b1b1a512bb0f342f4226b8ba231212c01b6371475c52b6b02c1951d1503393e
|
|
| MD5 |
d9fd1028e562d2f2f5e7f37680955c24
|
|
| BLAKE2b-256 |
e06b581b8666175fe6fe9264393f2826405b247ea84306addebf4fb83668696c
|
File details
Details for the file just_dna_format-0.1.0-py3-none-any.whl.
File metadata
- Download URL: just_dna_format-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d44cc551bd070c51e36585b6fac5f333ee0de1199c7584346d856278380d92b6
|
|
| MD5 |
d79082d68be65f5ed814a4820966f427
|
|
| BLAKE2b-256 |
01c5c541598dbdefdc415e873cb83cc04a1e41787eb50464dcfb9c414d98dce2
|