OCDocker.Workbench.Registry module

Read-only discovery helpers for Workbench run inventories.

OCDocker.Workbench.Registry.discover_result_manifest_paths(root, *, max_depth=6)[source]

Discover Workbench result manifest paths below a root.

Parameters:
  • root (str or pathlib.Path) – Root file or directory to scan.

  • max_depth (int) – Maximum directory depth below root to descend.

Returns:

Discovered result manifest paths.

Return type:

tuple[pathlib.Path, …]

OCDocker.Workbench.Registry.discover_run_manifest_paths(root, *, max_depth=6)[source]

Discover Workbench run manifest paths below a root.

Parameters:
  • root (str or pathlib.Path) – Root file or directory to scan.

  • max_depth (int) – Maximum directory depth below root to descend.

Returns:

Discovered run manifest paths.

Return type:

tuple[pathlib.Path, …]

OCDocker.Workbench.Registry.scan_workspace(root, *, max_depth=6)[source]

Build a read-only inventory of Workbench manifests below a root.

Parameters:
  • root (str or pathlib.Path) – Root file or directory to scan.

  • max_depth (int) – Maximum directory depth below root to descend.

Returns:

Read-only inventory payload for CLI or GUI consumers.

Return type:

WorkspaceInventory

OCDocker.Workbench.Registry.summarize_run_manifest(path)[source]

Read one run manifest and return its compact inventory summary.

Parameters:

path (str or pathlib.Path) – Run manifest path.

Returns:

Compact run summary.

Return type:

RunInventoryItem