pengutils.utils.cli_pengutils module

Main CLI Dispatcher

This module provides a dynamic CLI that discovers and allows execution of other registered console_scripts in the pengutils package.

class pengutils.utils.cli_pengutils.PenguinCLI(name=None, invoke_without_command=False, no_args_is_help=None, subcommand_metavar=None, chain=False, result_callback=None, **attrs)[source]

Bases: MultiCommand

Parameters:
  • name (str | None)

  • invoke_without_command (bool)

  • no_args_is_help (bool | None)

  • subcommand_metavar (str | None)

  • chain (bool)

  • result_callback (Callable[[...], Any] | None)

  • attrs (Any)

get_command(ctx, name)[source]

Load and return the requested command object.

list_commands(ctx)[source]

Dynamically list commands registered in setup.cfg under console_scripts.