- integrations
- Python
- ocx_sdk
InspectedPackage (1 of 2)
InspectedPackageclassdataclass#
Re-exported from
ocx_sdk._resultsView sourceclass 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
| Name | Type | Description |
|---|---|---|
name | str | Binding name, or the requested identifier at the package tier. |
identifier | str | The identifier as requested. |
candidates | tuple[Candidate, ...] | One entry per platform ocx found. |
pinned_identifier | str | None | --resolve: the identifier with its digest. |
pinned_digest | str | None | --resolve: the digest alone. |
platform | Mapping[str, Any] | None | --resolve: the resolved platform object. |
metadata | Mapping[str, Any] | None | --resolve: the package’s metadata.json. |
layers | tuple[Mapping[str, Any], ...] | --resolve: the layer descriptors. |
resolution | Mapping[str, Any] | None | --resolve: the pin and the walk that produced it. |
closure | Mapping[str, Any] | None | --closure: dependencies, surface, and conflicts. |
candidatesattributeclass attributeinstance attribute#
candidates: tuple[Candidate, ...] = ()closureattributeclass attributeinstance attribute#
closure: Mapping[str, Any] | None = Nonemetadataattributeclass attributeinstance attribute#
metadata: Mapping[str, Any] | None = Nonenameattributeinstance attribute#
name: strpinned_digestattributeclass attributeinstance attribute#
pinned_digest: str | None = Nonepinned_identifierattributeclass attributeinstance attribute#
pinned_identifier: str | None = Noneplatformattributeclass attributeinstance attribute#
platform: Mapping[str, Any] | None = Noneresolutionattributeclass attributeinstance attribute#
resolution: Mapping[str, Any] | None = None