Skip to content
ocx
install

InstalledPackage

InstalledPackageclassdataclass#

Re-exported from ocx_sdk._resultsView source
class InstalledPackage(identifier: str, path: str | None, metadata: Mapping[str, Any] = _EMPTY)

One package package install or package select put in place.

Attributes

NameTypeDescription
identifierstrThe pinned identifier, <as given>@sha256:....
pathstr | NoneThe symlink that now points at it — candidates/<tag> after an install, current after a select — or None when nothing was materialized. Always-present-nullable (install.rs:23).
metadataMapping[str, Any]The package’s metadata.json, carried untyped.

identifierattributeinstance attribute#

identifier: str

metadataattributeclass attributeinstance attribute#

metadata: Mapping[str, Any] = _EMPTY

pathattributeinstance attribute#

path: str | None

refproperty#

ref: PackageRef

The pinned identifier, carrying its metadata.

from_dictmethodclassmethod#

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

Build from one decoded value of the keyed object.