Spec
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.
- class Spec(name: str, params: ~typing.Mapping[str, ~typing.Any] = <factory>, version: str = '1.0')[source]
Bases:
objectSpecification of ONE pluggable component.
- params
Constructor parameters. Defaults live in the component classes themselves so a spec only records deviations.
- Type:
Mapping[str, Any]
- fingerprint() str[source]
Return a stable hash identifying this exact specification.
Two runs with equal fingerprints are scientifically comparable; caching and provenance key on it.
- Returns:
Hex digest of the canonical payload.