- integrations
- Python
- ocx_sdk
PackageCommands (6 of 16)
PackageCommandsclassdataclass#
Re-exported from
ocx_sdk._clientView sourcereceiptmethod#
def receipt(bundle: str | Path, *, timeout: MaybeTimeout = UNSET, retry: MaybeRetry = UNSET) -> BuildReceipt | NonePrint the build receipt create wrote beside a bundle, if any.
Answers what push and test would fall back to for the flags a
caller leaves out. Local and read-only — it touches no registry — so
it keeps the session retry policy.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
bundle | str | Path | required | The bundle archive create wrote. |
timeout | MaybeTimeout | UNSET | Seconds per attempt. Omitted takes the config’s. |
retry | MaybeRetry | UNSET | Retry policy. None opts out; omitted takes the config’s. |
Returns
BuildReceipt | None- The receipt, or
Nonewhen no receipt sits beside the bundle — BuildReceipt | None- ocx’s exit 79, the ordinary state for a bundle handed over from
BuildReceipt | None- elsewhere, rather than an error here.
Raises
DataError- A receipt file that ocx cannot read (exit 65).
selectmethod#
def select(*refs: PackageLike, platform: str | None = None, timeout: MaybeTimeout = UNSET, retry: MaybeRetry = UNSET) -> InstallReportMake an installed version the current one.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
*refs | PackageLike | () | Package identifiers. |
platform | str | None | None | The platform to resolve against. |
timeout | MaybeTimeout | UNSET | Seconds per attempt. Omitted takes the config’s. |
retry | MaybeRetry | UNSET | Retry policy. None opts out; omitted takes the config’s. |
Returns
InstallReport- The selected packages, whose
pathnames thecurrentsymlink.