Skip to content
ocx
install

Overview

Python SDK for OCX.

ocx-sdk drives the ocx binary rather than reimplementing it: ocx owns resolution, verification, and the identifier grammar, and this package gives you typed, CWD-independent handles over the commands it exposes.

from ocx_sdk import Ocx, bootstrap
ocx = Ocx(exe=bootstrap.ensure())
project = ocx.project("/srv/build")
project.pull()
project.exec(["task", "verify"])

This module is the API. Everything listed in __all__ is the stable surface; every other module is underscored and package-private, and the one public submodule is ocx_sdk.bootstrap. Reaching into an underscored path means the next release may move it without notice — pre-1.0, breaking changes ship without shims.

Start at Ocx for the runtime API and bootstrap.ensure for provisioning.

__version__attributemodule attribute#

__version__ = _resolve_version()