Python source-mode loader for MDA v1.0 configuration artifacts
Project description
snoai-mda-config
Python source-mode loader for MDA v1.0 configuration artifacts.
This package mirrors the TypeScript @snoai/mda-config and Rust
snoai-mda-config loader contract. The v1.0 surface covers frontmatter
extraction, MDA source-schema validation, integrity verification,
requires.network enforcement, Sigstore verification hooks, and consumer
pydantic validation.
Python does not perform real Rekor transport or Sigstore cryptography by
itself. When verify_signatures=True, callers must provide a trust policy,
Rekor client, and Sigstore verifier hook. Missing verifier pieces fail closed.
from pathlib import Path
from pydantic import BaseModel
from snoai_mda_config import load_mda_source
class Preset(BaseModel, extra="forbid"):
name: str
description: str
metadata: dict | None = None
integrity: dict | None = None
signatures: list[dict] | None = None
config = load_mda_source(
Path("preset.mda"),
schema=Preset,
verify_integrity=True,
)
For signed presets, also pass verify_signatures=True,
trust_policy=..., rekor_client=..., and sigstore_verifier=.... For
capability enforcement, pass enforce_requires=True with
allowed_networks=[...].
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 snoai_mda_config-1.1.0.tar.gz.
File metadata
- Download URL: snoai_mda_config-1.1.0.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a19c988ca0520010cedd8860b1966f96bb852eedfcd71a2b28db39b6ac952071
|
|
| MD5 |
9640f3105c6f3cc29b8b36613ac92600
|
|
| BLAKE2b-256 |
490917728f2f524833900633463af2840dd033fa7301e0f8ab17fa1b4f92c57d
|
Provenance
The following attestation bundles were made for snoai_mda_config-1.1.0.tar.gz:
Publisher:
publish-pypi.yml on sno-ai/mda-config
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snoai_mda_config-1.1.0.tar.gz -
Subject digest:
a19c988ca0520010cedd8860b1966f96bb852eedfcd71a2b28db39b6ac952071 - Sigstore transparency entry: 1487096999
- Sigstore integration time:
-
Permalink:
sno-ai/mda-config@e474dab3c88bd4b9461e484b93460bae551b6ac8 -
Branch / Tag:
refs/tags/py-v1.1.0 - Owner: https://github.com/sno-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@e474dab3c88bd4b9461e484b93460bae551b6ac8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file snoai_mda_config-1.1.0-py3-none-any.whl.
File metadata
- Download URL: snoai_mda_config-1.1.0-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
143c8fbc101ccb3b3dde53310feab081baeb94675b7dc831ec7adcdc0363937f
|
|
| MD5 |
85933c5f69df13fde560eef25d801a09
|
|
| BLAKE2b-256 |
4171fec60b043136ab9a37d89b5dc1ccfe1a5823b69290d75016abf143febfc3
|
Provenance
The following attestation bundles were made for snoai_mda_config-1.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on sno-ai/mda-config
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snoai_mda_config-1.1.0-py3-none-any.whl -
Subject digest:
143c8fbc101ccb3b3dde53310feab081baeb94675b7dc831ec7adcdc0363937f - Sigstore transparency entry: 1487097023
- Sigstore integration time:
-
Permalink:
sno-ai/mda-config@e474dab3c88bd4b9461e484b93460bae551b6ac8 -
Branch / Tag:
refs/tags/py-v1.1.0 - Owner: https://github.com/sno-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@e474dab3c88bd4b9461e484b93460bae551b6ac8 -
Trigger Event:
push
-
Statement type: