rgpycrumbs.cli

Attributes

Functions

_get_scripts_in_folder(→ list[str])

Returns a sorted list of CLI script names (without extension) in a folder.

_dispatch(group, script_name, script_args[, is_dev, ...])

Sets up the environment and runs the target script via 'uv run'.

_make_script_command(→ click.Command)

Creates a click command that dispatches to a PEP 723 script.

main(ctx, dev, verbose)

A dispatcher that runs self-contained PEP 723 scripts using 'uv'.

Module Contents

rgpycrumbs.cli.PACKAGE_ROOT[source]
rgpycrumbs.cli._get_scripts_in_folder(folder_name: str) list[str][source]

Returns a sorted list of CLI script names (without extension) in a folder.

Excludes library modules (hdf5_io, plotting) and internal files (__init__, _*). Includes actual CLI entry point scripts.

rgpycrumbs.cli._dispatch(group: str, script_name: str, script_args: tuple, is_dev: bool = False, is_verbose: bool = False)[source]

Sets up the environment and runs the target script via ‘uv run’.

rgpycrumbs.cli._make_script_command(group_name: str, script_stem: str) click.Command[source]

Creates a click command that dispatches to a PEP 723 script.

For full option help, run the script directly:

python -m rgpycrumbs.<group>.<script> –help

rgpycrumbs.cli.main(ctx, dev, verbose)[source]

A dispatcher that runs self-contained PEP 723 scripts using ‘uv’.

rgpycrumbs.cli._valid_groups[source]
rgpycrumbs.cli._file_stems = [][source]