Skip to content
ocx
install

PackageBinding

PackageBindingclassdataclass#

Re-exported from ocx_sdk._resultsView source
class PackageBinding(name: str, package: str | None = None)

A name a package provides — the row shape binaries and entrypoints share.

Attributes

NameTypeDescription
namestrThe binary or entrypoint name the package claims.
packagestr | NoneThe package that claimed it, or None when ocx could not attribute the claim. Absent-when-unattributed (D7): env.rs:100 skips the key, and its own doc reserves None for a future source with no clean attribution.

nameattributeinstance attribute#

name: str

packageattributeclass attributeinstance attribute#

package: str | None = None

refproperty#

ref: PackageRef | None

The providing package, as a PackageRef, or None when unattributed.

from_dictmethodclassmethod#

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

Build from one decoded binaries or entrypoints entry.