just-dna-registry
A catalog / publish / download REST API for just-dna-lite annotation
modules. Authors publish module specs; the server validates, recompiles, stores, and indexes them;
consumers browse, search, download, and integrity-verify. The webui and Dagster pipelines are
consumers of this API; since 0.23 the server also carries its own small console at /ui/, a
browser page over the same API for publishers and operators (not a replacement for the webui's Store).
Live: https://module-registry.just-dna.life · health GET /health · API under /api/v1
· interactive docs at /docs · console at
/ui/.
Two instances, one image (0.12). Production is the catalog above. The polygon
(https://module-polygon.just-dna.life, REGISTRY_MODE=test) is where you rehearse a publish: it
accepts test-prefixed data and lets you delete it again, which production deliberately does not.
See docs/SPEC.md for the full design and docs/ROADMAP.md for build status.
Install
Two shapes from one package:
pip install just-dna-registry # client only (lightweight): httpx + just-dna-format
pip install just-dna-registry[server] # + FastAPI app, server-side recompile, storage, admin
The default install is the reference client — import it instead of re-implementing the REST calls + integrity verification:
from just_dna_registry import RegistryClient
with RegistryClient("https://module-registry.just-dna.life", token="mk_live_…") as mkt:
print(mkt.list_modules())
mkt.import_module("just-dna-seq", "coronary", "1.0.0", "coronary_v1.zip") # publish a zip
mkt.download("just-dna-seq", "coronary", "1.0.0", "./coronary") # fetch + verify
mkt.lookup_by_digest("sha256:…") # already published?
Or the registry-client CLI (ships with the client install):
export REGISTRY_URL=https://module-registry.just-dna.life REGISTRY_TOKEN=mk_live_…
registry-client list
registry-client download just-dna-seq coronary 1.0.0 ./coronary
The console
Every registry serves a browser page at /ui/: catalog and search, a module's readme, versions,
trust and licensing, files with digests, the manifest, reviews; signed in, the yank/changelog/readme
amends, the /validate and /check dry runs with their full reports, publish, and namespace
onboarding. The same page runs from the client install against any registry:
registry-client ui --url https://module-polygon.just-dna.life # proxies the API locally
registry-client ui --url https://module-registry.just-dna.life --token mk_live_…
REGISTRY_UI_ENABLED=false turns it off on a server. See docs/UI.md.
Run the server (needs [server])
uv sync # dev env (includes the server extra + tests)
uv run pytest -q
uv run registry issue-key <account> -n <namespace> # mint an API key
uv run registry serve --host 0.0.0.0 # port 8000 (prod) / 8100 (test), /docs for the API
Modes: production vs the polygon
REGISTRY_MODE is prod (the default) or test. It is a server setting — the client never branches
on it. An unrecognised value refuses to boot rather than guessing, because a typo resolving to test
would arm a delete endpoint on production data.
REGISTRY_MODE=test uv run registry serve # how a deployment sets it (unit file / compose env)
uv run registry serve --mode test # same thing for a local polygon; exports the variable
--mode sets REGISTRY_MODE rather than passing a value inward, because uvicorn imports the app in
the worker (a separate process under --reload) where it builds its own settings from the environment.
| production | polygon (REGISTRY_MODE=test) |
|
|---|---|---|
| default port | 8000 | 8100 |
test-prefixed namespace / test_prefixed module |
422 test_data_on_prod |
accepted |
409 duplicate_content |
any account | scoped to the publishing account |
DELETE a module or version |
405 — not mounted |
served (bearer + namespace) |
Why the polygon needs a delete verb. A published version is immutable and its authored data is
claimed by a name-independent content_hash that yank does not release. So on one instance every
rehearsal permanently burns a version number and the right to publish that data under any other name —
which is why a "test subtree" inside production does not work, and why the polygon exists.
Give it its own DB and artifact storage. Never point it at production's.
Ops: snapshots and cleanup
uv run registry backup --reason before-migration # rolling index, never overwrites
uv run registry list-backups
uv run registry purge-test-data # dry run: prints exactly what would go
uv run registry purge-test-data --apply # server stopped, please
Every destructive command (reset-db, remove-*, purge-test-data) snapshots the DB first. Snapshots
count up (registry-00001-…) and are never overwritten or rotated out, so they accumulate — prune them
deliberately. A snapshot is the index, not the artifacts.
What works today
- Read/catalog API — list + search (
?q,?gene,?category,?genome_build,?owner,?license,?sort), module detail, versions, manifest (SPEC §8.1–§8.4). - Publish — multipart spec upload or zip/tar.gz archive import (incl. legacy parquet-only
via reverse-engineering), server-side recompiled so
compile_success/digest are trusted. - Download + integrity — per-file + streamable tar.gz, verify-then-install via
just_dna_format.verify_manifest(SPEC §5). - Pre-flight —
POST .../validate(offline) andPOST .../check(the network tier), both taking a compressed spec archive;would_publishis the field CI branches on. - Logs over the API; digest lookup; auth (static API keys) + namespace ownership;
yank / un-yank; ops-only hard removal (
registry remove-namespace/-module). - Modes + ops safety (0.12) — production refuses test data, the polygon can delete it; rolling
pre-flight DB snapshots and a dry-run-by-default
purge-test-data. - Console (0.23) — a browser UI at
/ui/andregistry-client ui, over the same API, with the instance mode in the header and the dry-run reports rendered in full. TypeScript inconsole/, bundled and committed, so the Python side needs no Node.
Architecture
The manifest.json of each version is the source of truth; the SQLite catalog is a rebuildable
projection of it. The manifest contract and integrity primitives live in the shared, dependency-light
just-dna-format package so this service and the compiler never drift.
src/just_dna_registry/
config.py # Pydantic settings (incl. REGISTRY_MODE)
testdata.py # what counts as test data, and what each mode does about it
backup.py # rolling DB snapshots taken before anything destructive
db/ # SQLite schema + repository (the projection)
storage/ # StorageBackend interface + LocalStorage (HfStorage pending)
models/api.py # card / detail / version / page response models
services/ # catalog (reads), ingest (manifest -> projection), enrich, purge
api/ # FastAPI app, deps (auth/pagination), routers
ui/ # the console: built bundle + shell, /ui mount, standalone proxy
console/ # the console's TypeScript sources and build (npm run verify)
cli.py # `registry` admin CLI
Metadata
Release files for just-dna-registry 0.28.4
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_registry-0.28.4.tar.gz | 434.2 kB | Without provenance | Details for just_dna_registry-0.28.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| just_dna_registry-0.28.4-py3-none-any.whl | Python 3 | none | any | Details for just_dna_registry-0.28.4-py3-none-any.whl |
Total release size: 898.5 kB
Release files / just_dna_registry-0.28.4.tar.gz
| Download URL | just_dna_registry-0.28.4.tar.gz |
|---|---|
| Size | 434.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c53fa42056dd27d5b2c62a4fc7c21ca5c8d51db4858a1c4da58f5a995af709f
|
|
BLAKE2b-256 checksum How to use checksums |
5cb791089caaa0c030c1175c453205967503ee7e5fc519b33352c6d50bf2806d
|
| 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_registry-0.28.4-py3-none-any.whl
| Download URL | just_dna_registry-0.28.4-py3-none-any.whl |
|---|---|
| Size | 464.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f7ed3653d7c90bb15839ab9fc878e2c14ca2257a09c2305092891da06f143e8
|
|
BLAKE2b-256 checksum How to use checksums |
0d0dcb68cc3fdb73ebb44e5e87d872eabce315019bf56987c01618493add4e02
|
| 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-registry 0.28.4
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.