- integrations
- Python
- ocx_sdk
PackageRef, PathVar, Resolve
Resolveattribute#
ocx_sdk._clientView sourceResolveWhich $OCX_HOME symlink a package-tier call resolves through.
'candidate' is the installed version’s own link, 'current' the selected
one. Omitting it leaves the choice to ocx, which is the usual answer.
PackageRefclassdataclass#
ocx_sdk._typesView sourceclass PackageRef(identifier: str, metadata: Mapping[str, object] = _NO_METADATA)A package identifier carried verbatim from ocx, never parsed.
ocx owns the identifier grammar. The SDK stores the string it was given and hands it back unchanged, so a ref that came out of one result flows into the next call’s argv byte-for-byte.
Identity is the identifier alone. metadata is decoration carried along
from whichever JSON row produced the ref, so two refs to the same package
from different commands must not compare unequal. The mapping is copied
and made read-only at construction (and is therefore not picklable).
PathVarclassdataclass#
ocx_sdk._typesView sourceclass PathVar(value: str)An [env] value prepended to a PATH-like variable, deduplicated.
valueattributeinstance attribute#
value: str