MODULE REFERENCE
artifacts
anomx.execution.work.artifactsValidation and local storage for portable run outputs.
functionView source ↗
artifact_metadata
artifact_metadata(value: Mapping[str, Any] | None) -> dict[str, Any]Copy finite JSON metadata, rejecting lossy conversion of object keys.
| Parameter | Type | Default |
|---|---|---|
value | Mapping[str, Any] | None | required |
Returns dict[str, Any]
functionView source ↗
artifact_name
artifact_name(value: str) -> strReturn a portable filename without accepting directory components.
| Parameter | Type | Default |
|---|---|---|
value | str | required |
Returns str
functionView source ↗
read_artifact
read_artifact(path: Path) -> bytesRead a bounded regular file; never stream devices or special files.
| Parameter | Type | Default |
|---|---|---|
path | Path | required |
Returns bytes
functionView source ↗
store_local_artifact
store_local_artifact(directory: Path, name: str, content: bytes, metadata: dict[str, Any]) -> dict[str, Any]Keep a content-addressed copy independently of the original output file.
| Parameter | Type | Default |
|---|---|---|
directory | Path | required |
name | str | required |
content | bytes | required |
metadata | dict[str, Any] | required |
Returns dict[str, Any]
attributeView source ↗
MAX_ARTIFACT_BYTES
MAX_ARTIFACT_BYTES = 64 * 1024 * 1024attributeView source ↗
MAX_METADATA_BYTES
MAX_METADATA_BYTES = 64 * 1024