- integrations
- Python
- ocx_sdk
DistSource to Forge
EnvEntryTypeattribute#
Re-exported from
ocx_sdk._resultsView sourceEnvEntryTypeThe type an ocx env entry declares. Mirrors ocx’s --env KEY:TYPE=VALUE.
EnvValueattribute#
Re-exported from
ocx_sdk._typesView sourceEnvValueAn [env] value. A bare str is a ConstVar, matching ocx’s own grammar.
Forgeattribute#
Re-exported from
ocx_sdk._clientView sourceForgeocx --forge values — which forge hosts an index repository. Argv-only, so a Literal.
DistSourceclassdataclass#
Re-exported from
ocx_sdk._distView sourceurlmethodclassmethod#
def url(url: str | None = None, sha256: str | None = None, auth: Auth | None = None, headers: Mapping[str, str] | None = None) -> DistSourceFetch the manifest over https.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
url | str | None | None | Manifest URL. None keeps the default source, which honors
OCX_INSTALL_DIST_URL from the environment. |
sha256 | str | None | None | Expected digest of the manifest body. Required whenever the
host is not setup.ocx.sh or a mirror is in play; derived
automatically from a dist/<sha256>.json URL. |
auth | Auth | None | None | Credentials for this origin, and this origin only. |
headers | Mapping[str, str] | None | None | Extra request headers, bound to the same origin. |
Returns
DistSource- The source.
Raises
DistManifestErrorsha256is not 64 lowercase hex digits.