Skip to content
ocx
install

ToolBinding

ToolBindingclassdataclass#

Re-exported from ocx_sdk._resultsView source
class ToolBinding(declared: str | None = None, platforms: Mapping[str, str] | None = None)

One tool in a group of ocx status, and how far it is bound.

Binding state is key presence, not a status field: declared without platforms is declared-but-unlocked, platforms without declared is a stale lock entry nothing declares any more, and both means fully bound.

Attributes

NameTypeDescription
declaredstr | NoneThe identifier ocx.toml declares, if it declares one.
platformsMapping[str, str] | NonePlatform to digest, from the lock file, if it has an entry.

declaredattributeclass attributeinstance attribute#

declared: str | None = None

platformsattributeclass attributeinstance attribute#

platforms: Mapping[str, str] | None = None

refproperty#

ref: PackageRef | None

The declared identifier as a PackageRef, or None if nothing declares it.

from_dictmethodclassmethod#

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

Build from one decoded entry of a group’s tools object.