Skip to content
ocx
install

Candidate

Candidateclassdataclass#

Re-exported from ocx_sdk._resultsView source
class Candidate(digest: str, pinned: str, platform: str, media_type: str | None = None, size: int | None = None)

One platform’s manifest for a package, as inspect lists it.

media_type and size are present on the package inspect tier only; the toolchain tier omits them.

digestattributeinstance attribute#

digest: str

media_typeattributeclass attributeinstance attribute#

media_type: str | None = None

pinnedattributeinstance attribute#

pinned: str

platformattributeinstance attribute#

platform: str

sizeattributeclass attributeinstance attribute#

size: int | None = None

refproperty#

ref: PackageRef

The pinned identifier, ready for the next call’s argv.

from_dictmethodclassmethod#

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

Build from one decoded entry of a package’s candidates array.