great_expectations.cli.v012.util

Module Contents

Functions

cli_message(string: str)

cli_colorize_string(string: str)

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

verify_library_dependent_modules(python_import_name: str, pip_library_name: str, module_names_to_reload: Optional[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.v012.util.SUPPORTED_CLI_COLORS :Final[Tuple[str, ...]] = ['blue', 'cyan', 'green', 'yellow', 'red']
great_expectations.cli.v012.util.cli_message(string: str) → None
great_expectations.cli.v012.util.cli_colorize_string(string: str) → str
great_expectations.cli.v012.util.cli_message_list(string_list, list_intro_string=None) → None

Simple util function for displaying simple lists in cli

great_expectations.cli.v012.util.action_list_to_string(action_list)

Util function for turning an action list into pretty string

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

Util function for displaying nested dicts representing ge objects in cli

great_expectations.cli.v012.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.v012.util.verify_library_dependent_modules(python_import_name: str, pip_library_name: str, module_names_to_reload: Optional[list] = None) → bool
great_expectations.cli.v012.util.library_install_load_check(python_import_name: str, pip_library_name: str) → Optional[int]

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.v012.util.reload_modules(module_names: list) → None