dagnam-contracts
The canonical component/parameter validation contract for Dagnam.AI — the generated component schema plus a dependency-free interpreter of it.
An architecture is validated in three places: the platform backend when a project
is saved, the dagnam SDK before a job is submitted, and the Studio as nodes are
dragged onto the canvas. All three must reach identical verdicts — a parameter
the Studio accepts and the backend rejects is a bug the user experiences as the
product lying to them. This package is the one definition they all read.
import dagnam_contracts as contracts
errors = contracts.validate_params(
"convolution-layer", {"filters": -999}, node_id="conv_1"
)
for e in errors:
print(e.message)
# convolution-layer: filters must be at least 1, got -999
# convolution-layer: missing required parameter 'kernelSize'
Zero dependencies, by design
This package installs nothing else. That is a constraint rather than a
coincidence: the dagnam SDK ships with only requests and numpy, so a
contract package it depends on must add nothing.
It is why the Pydantic registry that authors the schema stays out of the distribution — the wheel carries generated JSON and a plain-Python interpreter of it, and the typed authoring format lives in the repository instead.
Versioning
dagnam-contracts and @dagnam/contracts (npm) are published together at the
same version and carry a byte-identical schema, so a version number describes one
contract across both ecosystems. Breaking schema changes take a major bump, and
each consumer upgrades deliberately.
License
Apache-2.0. Source: https://github.com/Dagnam-AI/dag-contracts
Metadata
Release files for dagnam-contracts 0.1.1
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 | |
|---|---|---|---|---|
| dagnam_contracts-0.1.1.tar.gz | 12.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dagnam_contracts-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / dagnam_contracts-0.1.1.tar.gz
| Download URL | dagnam_contracts-0.1.1.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3dbbb3d55f11a08b4de137e3518fdddaa53ad00c305adf52a12e570c4c05685a
|
|
BLAKE2b-256 checksum How to use checksums |
6640de6231f3da58377553a54986333b37f85bfc11a38e7ebc362ba8c2db6d58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency logRelease files / dagnam_contracts-0.1.1-py3-none-any.whl
| Download URL | dagnam_contracts-0.1.1-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b747797e487a589fdc4fe0a255a33f9979eaa7011c5394d60a6e5e31894e809
|
|
BLAKE2b-256 checksum How to use checksums |
069c8e90a2ad1b2c09ef8aabe0e029ca28be8b181ad808558739a16732674520
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency logSecurity for dagnam-contracts 0.1.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for dagnam_contracts-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency logA 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.