_manifest
Manifest parsing and validation. Pure functions.
Classes¶
RuntimeManifest
dataclass
¶
Manifest for a prebuilt runtime bundle.
This structure is typically loaded from a manifest.json stored alongside a
runtime directory.
Attributes:
| Name | Type | Description |
|---|---|---|
runtime_version |
str
|
brmspy runtime bundle version. |
fingerprint |
str
|
System fingerprint this runtime was built for. |
r_version |
str
|
R version string used for the runtime build (for example |
cmdstan_version |
str
|
CmdStan version included in the runtime. |
r_packages |
dict[str, str]
|
Mapping of R package names to versions. |
manifest_hash |
str
|
Hash used to validate the runtime contents. |
built_at |
str
|
Build timestamp. |
Source code in brmspy/types/runtime.py
Attributes¶
runtime_version
instance-attribute
¶
fingerprint
instance-attribute
¶
r_version
instance-attribute
¶
cmdstan_version
instance-attribute
¶
r_packages
instance-attribute
¶
manifest_hash
instance-attribute
¶
built_at
instance-attribute
¶
Functions¶
__init__(runtime_version, fingerprint, r_version, cmdstan_version, r_packages, manifest_hash, built_at)
¶
Functions¶
log_warning(msg, method_name=None)
¶
Log a warning message.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
msg
|
str
|
The warning message to log |
required |
method_name
|
str
|
The name of the method/function. If None, will auto-detect from call stack. |
None
|
Source code in brmspy/helpers/log.py
parse_manifest(path)
¶
Parse manifest.json. Returns None if missing/invalid.
Source code in brmspy/_runtime/_manifest.py
validate_manifest(manifest, expected_fingerprint)
¶
Validate manifest matches expected fingerprint. Raises RuntimeError with details if mismatch.
Source code in brmspy/_runtime/_manifest.py
compute_manifest_hash(manifest_dict)
¶
Compute SHA256 of manifest content.