great_expectations.cli.python_subprocess

Module Contents

Functions

execute_shell_command(command: str)

Execute a shell (bash in the present case) command from inside Python program.

execute_shell_command_with_progress_polling(command: str)

Execute a shell (bash in the present case) command from inside Python program with polling (to enable progress bar).

great_expectations.cli.python_subprocess.execute_shell_command(command: str) → int

Execute a shell (bash in the present case) command from inside Python program.

While developed independently, this function is very similar to the one, offered in this StackOverflow article: https://stackoverflow.com/questions/30993411/environment-variables-using-subprocess-check-output-python

Parameters

command – bash command – as if typed in a shell/Terminal window

Returns

status code – 0 if successful; all other values (1 is the most common) indicate an error

great_expectations.cli.python_subprocess.execute_shell_command_with_progress_polling(command: str) → int

Execute a shell (bash in the present case) command from inside Python program with polling (to enable progress bar).

Parameters

command – bash command – as if typed in a shell/Terminal window

Returns

status code – 0 if successful; all other values (1 is the most common) indicate an error