Skip to content
ocx
install

InspectReport

InspectReportclassdataclass#

Re-exported from ocx_sdk._resultsView source
class InspectReport(packages: tuple[InspectedPackage, ...] = (), env: tuple[EnvEntry, ...] = (), platform: str | None = None)

ocx inspect and ocx package inspect — the same envelope, both tiers.

Attributes

NameTypeDescription
packagestuple[InspectedPackage, ...]One row per requested package or declared binding.
envtuple[EnvEntry, ...]The [env] entries those packages contribute, in order. Duplicates are allowed and meaningful — the merge folds them.
platformstr | NoneThe platform resolution ran against, under --resolve.

envattributeclass attributeinstance attribute#

env: tuple[EnvEntry, ...] = ()

packagesattributeclass attributeinstance attribute#

packages: tuple[InspectedPackage, ...] = ()

platformattributeclass attributeinstance attribute#

platform: str | None = None

from_jsonmethodclassmethod#

def from_json(raw: str) -> InspectReport

Parse ocx --format json inspect (or package inspect) output.