bucky.cli.main#

bucky CLI main command.

Module Contents#

Functions#

common(ctx: typer.Context, cfg_path: Optional[pathlib.Path] = typer.Option(None, '--cfg', '-c', envvar='BUCKY_CFG', help='Bucky cfg file/dir path.'), verbose: bool = typer.Option(False, '--verbose', '-v', envvar='BUCKY_VERBOSE', help='Enable INFO level logging.'), debug: bool = typer.Option(False, '--debug', '-d', envvar='BUCKY_DEBUG', help='Enable DEBUG level logging.'), color: bool = typer.Option(True, '--no-color', show_default=False, help='Disable colorized output.'), gpu: bool = typer.Option(True, '--cpu', show_default=False, help="Force numpy, otherwise cupy will be used if in it's place (if installed)."))

Bucky CLI.

Attributes#

log_fmt

main

main_click_object

bucky.cli.main.log_fmt = <green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level> |...#
bucky.cli.main.main[source]#
bucky.cli.main.main_click_object[source]#
bucky.cli.main.common(ctx: typer.Context, cfg_path: Optional[pathlib.Path] = typer.Option(None, '--cfg', '-c', envvar='BUCKY_CFG', help='Bucky cfg file/dir path.'), verbose: bool = typer.Option(False, '--verbose', '-v', envvar='BUCKY_VERBOSE', help='Enable INFO level logging.'), debug: bool = typer.Option(False, '--debug', '-d', envvar='BUCKY_DEBUG', help='Enable DEBUG level logging.'), color: bool = typer.Option(True, '--no-color', show_default=False, help='Disable colorized output.'), gpu: bool = typer.Option(True, '--cpu', show_default=False, help="Force numpy, otherwise cupy will be used if in it's place (if installed)."))[source]#

Bucky CLI.