great_expectations.cli.util

Module Contents

Functions

cli_message(string)

cli_colorize_string(string)

cli_message_list(string_list, list_intro_string=None)

Simple util function for displaying simple lists in cli

action_list_to_string(action_list)

Util function for turning an action list into pretty string

cli_message_dict(dict_, indent=3, bullet_char=’-‘, message_list=None, recursion_flag=False)

Util function for displaying nested dicts representing ge objects in cli

is_sane_slack_webhook(url)

Really basic sanity checking.

verify_library_dependent_modules(python_import_name: str, pip_library_name: str, module_names_to_reload: list = None)

library_install_load_check(python_import_name: str, pip_library_name: str)

Dynamically load a module from strings, attempt a pip install or raise a helpful error.

reload_modules(module_names: list)

great_expectations.cli.util.colored
great_expectations.cli.util.cli_message(string)
great_expectations.cli.util.cli_colorize_string(string)
great_expectations.cli.util.cli_message_list(string_list, list_intro_string=None)

Simple util function for displaying simple lists in cli

great_expectations.cli.util.action_list_to_string(action_list)

Util function for turning an action list into pretty string

great_expectations.cli.util.cli_message_dict(dict_, indent=3, bullet_char='-', message_list=None, recursion_flag=False)

Util function for displaying nested dicts representing ge objects in cli

great_expectations.cli.util.is_sane_slack_webhook(url)

Really basic sanity checking.

great_expectations.cli.util.CLI_ONLY_SQLALCHEMY_ORDERED_DEPENDENCY_MODULE_NAMES :list = ['great_expectations.datasource.batch_kwargs_generator.table_batch_kwargs_generator', 'great_expectations.dataset.sqlalchemy_dataset', 'great_expectations.validator.validator', 'great_expectations.datasource.sqlalchemy_datasource']
great_expectations.cli.util.verify_library_dependent_modules(python_import_name: str, pip_library_name: str, module_names_to_reload: list = None) → bool
great_expectations.cli.util.library_install_load_check(python_import_name: str, pip_library_name: str) → Union[int, None]

Dynamically load a module from strings, attempt a pip install or raise a helpful error.

Returns

True if the library was loaded successfully, False otherwise

Parameters
  • pip_library_name – name of the library to load

  • python_import_name (str) – a module to import to verify installation

great_expectations.cli.util.reload_modules(module_names: list) → None