Skip to content
ocx
install

DepNode

DepNodeclassdataclass#

Re-exported from ocx_sdk._resultsView source
class DepNode(identifier: str, repeated: bool = False, visibility: str | None = None, dependencies: tuple[Mapping[str, Any], ...] = ())

One node of the package deps tree.

Attributes

NameTypeDescription
identifierstrThe pinned identifier.
repeatedboolThis node already appeared elsewhere in the tree; its children are not repeated under it.
visibilitystr | NoneHow the parent exposes it, when the parent says.
dependenciestuple[Mapping[str, Any], ...]Child nodes, carried untyped. The only probe available had no dependencies, so the populated child shape is UNCONFIRMED — re-model this as tuple[DepNode, ...] once a real dependency edge is recorded.

dependenciesattributeclass attributeinstance attribute#

dependencies: tuple[Mapping[str, Any], ...] = ()

identifierattributeinstance attribute#

identifier: str

repeatedattributeclass attributeinstance attribute#

repeated: bool = False

visibilityattributeclass attributeinstance attribute#

visibility: str | None = None

refproperty#

ref: PackageRef

This node’s package, as a PackageRef.

from_dictmethodclassmethod#

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

Build from one decoded node of the roots array.