just-dna-format
The declarative schema + integrity contract for just-dna annotation modules: both the authored
input DSL and the compiled manifest.json. Dependency-light (Pydantic + cryptography, for Ed25519
signature verification) so it can be shared as the single source of truth by:
just-dna-compiler— the reference transform (spec → parquet artifact + manifest);just-dna-pipelines— emitsmanifest.jsonwhen it compiles a module;just-dna-marketplace— indexes, serves, and verifies those manifests;just-dna-agents— authoring support (rendersreference.authoring_reference()).
Keeping the contract in one small package prevents the sides from drifting.
What's here
| Module | Contents |
|---|---|
just_dna_format.spec |
The authored DSL: ModuleSpecConfig, VariantRow, StudyRow, ModuleInfo, Defaults (+ extract_pmids). |
just_dna_format.binning |
The measure→phenotype primitive: MeasureBinRow + Activity/CopyNumber/RepeatAllele/Heteroplasmy rows and validate_bins (0.4). |
just_dna_format.pgx |
PGx star-allele model: HaplotypeRow, AlleleFunctionRow, DiplotypeRow, PharmVariantRow (0.4). |
just_dna_format.pgs |
PgsRow — a curated PGS-Catalog interface with ancestry-validity fields (0.4). |
just_dna_format.vocab |
Shared constrained vocabularies, identifier grammars, and validator helpers. |
just_dna_format.derive |
Legacy state/ClinVar-boolean → 0.3-axis derivations (total, idempotent). |
just_dna_format.manifest |
ModuleManifest + sub-models (Identity, Display, Stats, Compilation, FileEntry, Artifact, Provenance, Signature, GenePanelSpec); read_manifest / write_manifest. SPEC §4. |
just_dna_format.integrity |
sha256_file, artifact_digest (canonical Merkle root), build_artifact, verify_manifest, verify_signature, IntegrityError. SPEC §5. |
just_dna_format.signing |
Ed25519 signing over artifact.digest (key management side). |
just_dna_format.aggregate |
Cross-version log / provenance union helpers. |
just_dna_format.reference |
authoring_reference() / json_schemas() — drift-proof DSL description generated from the live models. |
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).
manifest = read_manifest(module_dir / "manifest.json")
verify_manifest(module_dir, manifest) # a registry install
verify_manifest(module_dir, manifest, require_marketplace=False) # a locally-compiled module
Those two calls are different policies, not a strict and a lax mode — pick per install route
rather than picking one. The default additionally requires compiled_by == "marketplace-server", so
it rejects any module compiled anywhere else, this project's own compiler included (it leaves
compiled_by null on purpose). Both check every file hash and the digest in full. compiled_by is an
unsigned string written by whoever compiled the module, so it proves nothing on its own. The check that
carries weight is a signature verified against a key you pinned in advance:
verify_signature(digest, signature, trusted_public_key=...).
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
byte identity: these bytes, from this compiler. The content identity is content_signature,
over the authored rows and independent of the reference that resolved them, so a rebuild that moves
the digest while leaving the signature still means the data did not change.
Develop
uv sync
uv run pytest -vvv
Metadata
Release files for just-dna-format 0.8.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| just_dna_format-0.8.3.tar.gz | 354.6 kB | Without provenance | Details for just_dna_format-0.8.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| just_dna_format-0.8.3-py3-none-any.whl | Python 3 | none | any | Details for just_dna_format-0.8.3-py3-none-any.whl |
Total release size: 743.3 kB
Release files / just_dna_format-0.8.3.tar.gz
| Download URL | just_dna_format-0.8.3.tar.gz |
|---|---|
| Size | 354.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bc1b4872f68f8addf1fc19e817519c4cc21e8a4296234f8e12282c7e111e13d
|
|
BLAKE2b-256 checksum How to use checksums |
ccca815d1c91a8db35557a7250538a0b3f5bfee7f2a08f648c7130d55a109e22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / just_dna_format-0.8.3-py3-none-any.whl
| Download URL | just_dna_format-0.8.3-py3-none-any.whl |
|---|---|
| Size | 388.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58d2b0d7231375f782ae4e82d01564e5d0660fa61a3bd5ef16991eec0a93a5e2
|
|
BLAKE2b-256 checksum How to use checksums |
510c6944e809c9ecfee431cc1721a9884f4e6915b5e45effd29097336b7bb0b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for just-dna-format 0.8.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.