dtale.cli package

Submodules

dtale.cli.clickutils module

dtale.cli.clickutils.get_args(click_wrapper)[source]

Retrieves arguments being passed in from the command-line and applying them to a click command

Parameters:click_wrapper – click context
Returns:list of arguments
Return type:list
dtale.cli.clickutils.get_loader_options(key, options)[source]

Filters dictionary of click parameters for ones which start with a certain prefix

Parameters:
  • key (str) – click option prefix
  • options (dict) – click options
Returns:

dictionary of click options with start with key

Return type:

dict

dtale.cli.clickutils.get_log_options(options)[source]

Click logging options (logfile, log_level, verbose)

dtale.cli.clickutils.get_named_options(names, options)[source]

Filters click options for options in a specific subset of names

dtale.cli.clickutils.loader_options(key, params)[source]

Builds a decorator which will append a list of click parameters based on a combination of prefix & parameter name

loader_options(‘foo’, [‘bar’, ‘baz’]) => click.option(‘–foo-bar’), click.option(‘–foo-baz’)

Parameters:
  • key (str) – parameter prefix
  • params (list) – parameters names
Returns:

filter

Return type:

func

dtale.cli.clickutils.retrieve_meta_info_and_version(name)[source]

Retrieves meta information and versioning of specific package name

dtale.cli.clickutils.run(click_wrapper)[source]

Wrapper function for executing click commands and handling exceptions produced from click commands with versioning boilerplate

Parameters:click_wrapper – click context
dtale.cli.clickutils.setup_logging(logfile, log_level, verbose=False)[source]

Utility method for setting up logging configuration

Parameters:
  • logfile (str) – location of D-Tale logs
  • log_level (str, options are debug, info, warning, error or, critical) – D-Tale’s implementation of standard logging levels
  • verbose (bool, optional) – turns on verbose logging, defaults to False
Returns:

dtale.cli.script module

Module contents