Skip to content
ocx
install

InspectedPackage, InstallReport

InspectedPackageclassdataclass#

Re-exported from ocx_sdk._resultsView source

identifierattributeinstance attribute#

identifier: str

layersattributeclass attributeinstance attribute#

layers: tuple[Mapping[str, Any], ...] = ()

refproperty#

ref: PackageRef

The pinned identifier when resolved, else the requested one.

from_dictmethodclassmethod#

def from_dict(data: Mapping[str, Any]) -> InspectedPackage

Build from one decoded entry of the packages array.

InstallReportclassdataclass#

Re-exported from ocx_sdk._resultsView source
class 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

NameTypeDescription
packagesMapping[str, InstalledPackage]Requested identifier to what got installed.

packagesattributeclass attributeinstance attribute#

packages: Mapping[str, InstalledPackage] = _EMPTY

from_jsonmethodclassmethod#

def from_json(raw: str) -> InstallReport

Parse ocx --format json package install (or select) output.