Skip to content
ocx
install

StatusReport

StatusReportclassdataclass#

Re-exported from ocx_sdk._resultsView source
class StatusReport(project: str, lock: LockStatus = LockStatus(), groups: Mapping[str, GroupStatus] = _EMPTY, package_settings: Mapping[str, Mapping[str, Any]] = _EMPTY)

ocx status — the project’s declaration, lock, and groups.

Exits 0 even when the lock is broken, so this struct is where a caller learns something is wrong (lock.current, lock.error).

Attributes

NameTypeDescription
projectstrPath to the ocx.toml the report describes.
lockLockStatusLock file state.
groupsMapping[str, GroupStatus]Group name to its contents.
package_settingsMapping[str, Mapping[str, Any]]Per-package settings, carried through untyped — they are ocx’s configuration surface, not the SDK’s.

groupsattributeclass attributeinstance attribute#

groups: Mapping[str, GroupStatus] = _EMPTY

lockattributeclass attributeinstance attribute#

lock: LockStatus = field(default_factory=LockStatus)

package_settingsattributeclass attributeinstance attribute#

package_settings: Mapping[str, Mapping[str, Any]] = _EMPTY

projectattributeinstance attribute#

project: str

from_jsonmethodclassmethod#

def from_json(raw: str) -> StatusReport

Parse ocx --format json status output.