Skip to content
ocx
install

ConstVar, DistSource

ConstVarclassdataclass#

Re-exported from ocx_sdk._typesView source
class ConstVar(value: str)

An [env] value that replaces whatever the parent env had.

valueattributeinstance attribute#

value: str

DistSourceclassdataclass#

Re-exported from ocx_sdk._distView source
class DistSource(manifest_url: str | None = None, manifest_path: Path | None = None, manifest_data: bytes | None = None, sha256: str | None = None, auth: Auth | None = None, headers: Mapping[str, str] = _NO_HEADERS)

Where a dist manifest comes from, and how its body is trusted.

Build one with url(), path(), or data() rather than the constructor. A source with no location at all is the canonical default: it resolves to OCX_INSTALL_DIST_URL when the environment sets one, and to DEFAULT_DIST_URL otherwise. A source built with an explicit URL never consults the environment.

Attributes

NameTypeDescription
manifest_urlstr | NoneExplicit manifest URL, or None for the default source.
manifest_pathPath | NoneLocal manifest file.
manifest_databytes | NoneManifest bytes the caller already holds.
sha256str | NoneExpected digest of the manifest body. Auto-derived from a dist/<sha256>.json URL, and required for any URL source that is off-canonical or paired with a mirror.
authAuth | NoneCredentials for the manifest host, bound to its origin.
headersMapping[str, str]Extra request headers, bound to the same origin.

manifest_dataattributeclass attributeinstance attribute#

manifest_data: bytes | None = field(default=None, repr=False)

manifest_pathattributeclass attributeinstance attribute#

manifest_path: Path | None = None

manifest_urlattributeclass attributeinstance attribute#

manifest_url: str | None = None

sha256attributeclass attributeinstance attribute#

sha256: str | None = None