dna-sdk (Python)
Python SDK for DNA — Domain Notation of Anything: a microkernel + extensions runtime for declarative agent notation. See the repository README for the thesis, the architecture and the full Kind catalog.
Install
pip install dna-sdk # or: uv add dna-sdk
Pre-release / exact-pin alternative — from the repo:
cd packages/sdk-py
uv sync # or: pip install -e .
Optional extras: postgres, sqlite, sql (SqlAlchemySource — one
adapter for both SQL dialects, same tables; see docs/PORT-CONTRACT.md
§ "Using the SQLAlchemy adapter")
safety-ml (PII/toxicity models),
all, dev.
Minimal example
from dna import Kernel
# Scan a scope (directory of YAML/Markdown manifests under .dna/)
mi = Kernel.quick("hello-genome", base_dir="examples/hello-genome/.dna")
# Every document is identified by (apiVersion, kind, name)
for d in mi.documents:
print(d.api_version, d.kind, d.name)
# Compose agent + soul + skills + guardrails into one system prompt
print(mi.build_prompt(agent="greeter"))
Runnable version: examples/hello-genome/run.py.
Layout
dna/
├── kernel/ # Kernel (mediator over 5 ports), Document, ManifestInstance
├── adapters/ # filesystem (core); sqlite/postgres/sqlalchemy_ via extras
├── extensions/ # helix (core Kinds) + market formats + governance
├── sync/ # lockfile + document hashing
└── safety/ # safety pipeline (optional ML extras)
Tests
uv run pytest tests/ -v
The suite includes the market-fidelity conformance tests
(tests/test_market_conformance.py) and the golden fixtures that freeze
behavior crossing a boundary (tests/goldens/, tests/golden-fixtures/).
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 dna_sdk-0.72.0.tar.gz.
File metadata
- Download URL: dna_sdk-0.72.0.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acb93552b348c0a479a501fb617d737c506eafbd154578706d92fc5fe4be425d
|
|
| MD5 |
4f20f7a525f8af27e5a16fd48661bbd9
|
|
| BLAKE2b-256 |
12541bb298ff6275d3b6e518e2d41fe0c078f5e7021e7d739888a35028d4d401
|
Provenance
The following attestation bundles were made for dna_sdk-0.72.0.tar.gz:
Publisher:
release.yml on ruinosus/dna
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dna_sdk-0.72.0.tar.gz -
Subject digest:
acb93552b348c0a479a501fb617d737c506eafbd154578706d92fc5fe4be425d - Sigstore transparency entry: 2352757654
- Sigstore integration time:
-
Permalink:
ruinosus/dna@2cbe782a228eb967d160057d9ff307a6baa50e2c -
Branch / Tag:
refs/tags/v0.72.0 - Owner: https://github.com/ruinosus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2cbe782a228eb967d160057d9ff307a6baa50e2c -
Trigger Event:
push
-
Statement type:
File details
Details for the file dna_sdk-0.72.0-py3-none-any.whl.
File metadata
- Download URL: dna_sdk-0.72.0-py3-none-any.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bed792706b5ad6d279b9c3fdc8274586ca2313aac75d5f1d8ec38004d1d86bad
|
|
| MD5 |
9f8c779c066e4a1bd9d3b307b7e498e8
|
|
| BLAKE2b-256 |
8850eac978091821bdb89ff3311d9082df3b6282c35fe1965745cff1c44fe7dd
|
Provenance
The following attestation bundles were made for dna_sdk-0.72.0-py3-none-any.whl:
Publisher:
release.yml on ruinosus/dna
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dna_sdk-0.72.0-py3-none-any.whl -
Subject digest:
bed792706b5ad6d279b9c3fdc8274586ca2313aac75d5f1d8ec38004d1d86bad - Sigstore transparency entry: 2352757679
- Sigstore integration time:
-
Permalink:
ruinosus/dna@2cbe782a228eb967d160057d9ff307a6baa50e2c -
Branch / Tag:
refs/tags/v0.72.0 - Owner: https://github.com/ruinosus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2cbe782a228eb967d160057d9ff307a6baa50e2c -
Trigger Event:
push
-
Statement type: