build_tools.syllable_walk_web.cli

Command-line interface for the Pipe-Works Build Tools web application.

Provides python -m build_tools.syllable_walk_web entry point.

Classes

BuildToolsSettings

Settings loaded from the [build_tools] INI section.

Functions

load_build_tools_settings(config_path)

Load build-tools settings from the [build_tools] INI section.

create_argument_parser()

Create and return the argument parser for the web server.

parse_arguments([args])

Parse command-line arguments.

main([args])

CLI entry point.

Module Contents

class build_tools.syllable_walk_web.cli.BuildToolsSettings[source]

Settings loaded from the [build_tools] INI section.

output_base

Base directory for pipeline run discovery.

sessions_dir

Optional explicit session storage directory.

corpus_dir_a

Directory containing runs to auto-load into Patch A.

corpus_dir_b

Directory containing runs to auto-load into Patch B.

port

Optional explicit port. None means auto-select.

verbose

Print startup/runtime messages when True.

output_base: pathlib.Path | None = None
sessions_dir: pathlib.Path | None = None
corpus_dir_a: str | None = None
corpus_dir_b: str | None = None
port: int | None = None
verbose: bool = True
build_tools.syllable_walk_web.cli.load_build_tools_settings(config_path)[source]

Load build-tools settings from the [build_tools] INI section.

Parameters:

config_path (pathlib.Path | None) – Path to INI file. If missing/None, defaults are used.

Returns:

Parsed BuildToolsSettings instance.

Return type:

BuildToolsSettings

build_tools.syllable_walk_web.cli.create_argument_parser()[source]

Create and return the argument parser for the web server.

Returns:

Configured ArgumentParser ready to parse command-line arguments.

Return type:

argparse.ArgumentParser

build_tools.syllable_walk_web.cli.parse_arguments(args=None)[source]

Parse command-line arguments.

Parameters:

args (list[str] | None) – Argument list (defaults to sys.argv[1:]).

Returns:

Parsed arguments namespace.

Return type:

argparse.Namespace

build_tools.syllable_walk_web.cli.main(args=None)[source]

CLI entry point.

Returns:

0 for success, 1 for error, 130 for keyboard interrupt.

Return type:

Exit code