- integrations
- Python
- ocx_sdk
InspectedPackage, InstallReport
InspectedPackageclassdataclass#
Re-exported from
ocx_sdk._resultsView sourceidentifierattributeinstance attribute#
identifier: strlayersattributeclass attributeinstance attribute#
layers: tuple[Mapping[str, Any], ...] = ()refproperty#
ref: PackageRefThe pinned identifier when resolved, else the requested one.
from_dictmethodclassmethod#
def from_dict(data: Mapping[str, Any]) -> InspectedPackageBuild from one decoded entry of the packages array.
InstallReportclassdataclass#
Re-exported from
ocx_sdk._resultsView sourceclass InstallReport(packages: Mapping[str, InstalledPackage] = _EMPTY)ocx package install and ocx package select — the same keyed object.
Keys are the identifiers as given; the values carry the pinned form. That asymmetry is the point: a caller can look up what it asked for without knowing what it resolved to.
Attributes
| Name | Type | Description |
|---|---|---|
packages | Mapping[str, InstalledPackage] | Requested identifier to what got installed. |
packagesattributeclass attributeinstance attribute#
packages: Mapping[str, InstalledPackage] = _EMPTYfrom_jsonmethodclassmethod#
def from_json(raw: str) -> InstallReportParse ocx --format json package install (or select) output.