femic.patchworks_runtime

Patchworks runtime helpers for Patchworks Matrix Builder execution.

Functions

build_appchooser_command_string(config)

Build Windows CMD command to open Patchworks app chooser.

build_beanshell_command_string(*, config, ...)

Build Windows CMD command to run a BeanShell script via IProperties.

build_matrix_builder_command_string(config)

Build the Windows CMD command to run Matrix Builder.

build_patchworks_blocks_dataset(*, config[, ...])

Build 1:1 stand:block blocks.shp (and optional topology CSV).

find_wine_executable()

Return preferred Wine executable path/name on PATH.

format_command_for_display(command)

Return shell-quoted command for human-readable logs.

infer_patchworks_model_dir(config)

Infer Patchworks model root from runtime input/output paths.

is_windows_host()

Return true when running on native Windows.

load_patchworks_runtime_config(path)

Load and validate Patchworks runtime YAML/JSON config.

parse_license_server(value)

Parse user@server license format.

run_patchworks_beanshell_script(*, config, ...)

Execute a Patchworks BeanShell script via IProperties.

run_patchworks_command(*, config, ...[, run_id])

Execute Patchworks command and capture logs+manifest.

run_patchworks_preflight(*, config[, ...])

Run preflight checks before Patchworks execution.

shutil_which(name)

Wrapper for monkeypatch-friendly which lookup.

to_wine_windows_path(path)

Map absolute path to a Windows-style path for command arguments.

Classes

PatchworksBlocksBuildResult(model_dir, ...)

Outputs from preparing a 1:1 stand:block blocks dataset.

PatchworksExecutionResult(run_id, command, ...)

Execution outputs for a Patchworks command launch.

PatchworksPreflightResult(config, ...)

Preflight report for Patchworks runtime execution.

PatchworksRuntimeConfig(config_path, ...)

Resolved runtime settings for Patchworks execution.

Exceptions

PatchworksConfigError

Invalid Patchworks runtime config.