venvmod.commands package

Submodules

Module contents

venvmod.commands.get_parser(description: str, help_arguments: Optional[str] = None, with_appli: bool = False, with_verbose: bool = False, options: Optional[List[Tuple[str, Any, str]]] = None, args: Optional[List] = None) argparse.Namespace[source]

Create a parser for entry-points.

Parameters
  • description (str) – Description of the command

  • help_arguments (str, optional) – Help for the arguments, by default None

  • with_appli (bool, optional) – True to enable ‘–appli’ option, by default False

  • with_verbose (bool, optional) – True to enable ‘–verbise’ option, by default False

  • options (List[Tuple[str, Any, str]], optional) – list of options defined as (’–option-name’, default, ‘help’), by default None

  • args (List, optional) – list of arguments if not given throug cli, by default None

Returns

parsed arguments

Return type

argparse.Namespace

venvmod.commands.get_module_filename(virtual_env_name: str, appli_name: Optional[str] = None) str[source]

_summary_

Parameters
  • virtual_env_name (str) – name or path to the virtual env

  • appli_name (str, optional) – name of the application, by default None

Returns

name of the module file associated to the appli

Return type

str