Skip to content
ocx
install

InspectedPackage (1 of 2)

InspectedPackageclassdataclass#

Re-exported from ocx_sdk._resultsView source
class InspectedPackage(name: str, identifier: str, candidates: tuple[Candidate, ...] = (), pinned_identifier: str | None = None, pinned_digest: str | None = None, platform: Mapping[str, Any] | None = None, metadata: Mapping[str, Any] | None = None, layers: tuple[Mapping[str, Any], ...] = (), resolution: Mapping[str, Any] | None = None, closure: Mapping[str, Any] | None = None)

One package row of inspect or package inspect.

name reads differently per tier: a binding name at the toolchain tier, the full requested identifier at the package tier.

Everything from pinned_identifier down appears only under --resolve or --closure. resolution and closure stay mappings: both are deep trees whose interesting parts (closure.surface, closure.conflicts) are still moving upstream, and modelling a tree we would have to re-model on the next ocx release buys nothing v0.1 needs.

Attributes

NameTypeDescription
namestrBinding name, or the requested identifier at the package tier.
identifierstrThe identifier as requested.
candidatestuple[Candidate, ...]One entry per platform ocx found.
pinned_identifierstr | None--resolve: the identifier with its digest.
pinned_digeststr | None--resolve: the digest alone.
platformMapping[str, Any] | None--resolve: the resolved platform object.
metadataMapping[str, Any] | None--resolve: the package’s metadata.json.
layerstuple[Mapping[str, Any], ...]--resolve: the layer descriptors.
resolutionMapping[str, Any] | None--resolve: the pin and the walk that produced it.
closureMapping[str, Any] | None--closure: dependencies, surface, and conflicts.

candidatesattributeclass attributeinstance attribute#

candidates: tuple[Candidate, ...] = ()

closureattributeclass attributeinstance attribute#

closure: Mapping[str, Any] | None = None

metadataattributeclass attributeinstance attribute#

metadata: Mapping[str, Any] | None = None

nameattributeinstance attribute#

name: str

pinned_digestattributeclass attributeinstance attribute#

pinned_digest: str | None = None

pinned_identifierattributeclass attributeinstance attribute#

pinned_identifier: str | None = None

platformattributeclass attributeinstance attribute#

platform: Mapping[str, Any] | None = None

resolutionattributeclass attributeinstance attribute#

resolution: Mapping[str, Any] | None = None