- integrations
- Python
- ocx_sdk
ToolBinding
ToolBindingclassdataclass#
Re-exported from
ocx_sdk._resultsView sourceclass 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
| Name | Type | Description |
|---|---|---|
declared | str | None | The identifier ocx.toml declares, if it declares one. |
platforms | Mapping[str, str] | None | Platform to digest, from the lock file, if it has an entry. |
declaredattributeclass attributeinstance attribute#
declared: str | None = Noneplatformsattributeclass attributeinstance attribute#
platforms: Mapping[str, str] | None = Nonerefproperty#
ref: PackageRef | NoneThe declared identifier as a PackageRef, or None if nothing declares it.
from_dictmethodclassmethod#
def from_dict(data: Mapping[str, Any]) -> ToolBindingBuild from one decoded entry of a group’s tools object.