s6.app.idΒΆ

Live camera-mapping authoring tool for Sense Core pipeline configs.

s6.app.id.parse_args(argv=None)

Parse CLI arguments for the camera ID authoring tool.

s6.app.id.mapping_source_for_input(input_mode: str) str

Return the config mapping block name for a live input mode.

s6.app.id.resolve_input_mode(config: Any, requested_input: str) str

Resolve auto into a concrete live input mode and validate availability.

s6.app.id.device_ids_for_input(config: Any, input_mode: str) list[int]

Return configured device ids for a live input mode.

s6.app.id.build_mapping_permutations(device_ids: Sequence[int], camera_names: Sequence[str]) list[dict[int, str]]

Enumerate every one-to-one assignment of camera keys to sorted device ids.

s6.app.id.format_mapping(mapping: dict[int, str], device_ids: Sequence[int]) str

Return a stable human-readable mapping string.

s6.app.id.build_mapping_menu_lines(device_ids: Sequence[int], camera_names: Sequence[str], current_mapping: dict[int, str] | None = None) list[str]

Render numbered CLI options for every valid mapping permutation.

s6.app.id.validate_updated_config(config: Any, mapping_source: str, mapping: dict[int, str]) Any

Validate a camera-mapping update against the concrete pipeline config model.

s6.app.id.update_pipeline_config_file(config_path: str, config: Any, mapping_source: str, mapping: dict[int, str]) None

Persist a validated built-in camera mapping into a YAML or JSON config file.

s6.app.id.open_capture_provider(config: Any, input_mode: str) _BundleProvider

Create a frame-bundle provider for the chosen live input mode.

s6.app.id.main(argv=None)

Run live preview, choose a one-to-one mapping, and persist it to config.