cli_utils#
CLI functions.
Module Contents#
Functions#
Gets configuration for black. |
|
Gets pip requirements for evalml (with pip packages converted to conda names) |
|
Gets pip requirements for evalml as a requirements file |
|
Gets location where evalml is installed. |
|
Get dictionary mapping installed package names to their versions. |
|
Returns system information. |
|
Prints the version number of each dependency. |
|
Prints information about the system, evalml, and dependencies of evalml. |
|
Prints system information. |
|
Standardizes the format of the given packages. |
Attributes Summary#
Contents#
- evalml.utils.cli_utils.CONDA_TO_PIP_NAME#
- evalml.utils.cli_utils.get_evalml_black_config(evalml_path)[source]#
Gets configuration for black.
- Parameters
evalml_path – Path to evalml root.
- Returns
Dictionary of black configuration.
- evalml.utils.cli_utils.get_evalml_pip_requirements(evalml_path, ignore_packages=None, convert_to_conda=True)[source]#
Gets pip requirements for evalml (with pip packages converted to conda names)
- Parameters
evalml_path – Path to evalml root.
ignore_packages – List of packages to ignore. Defaults to None.
- Returns
List of pip requirements for evalml.
- evalml.utils.cli_utils.get_evalml_requirements_file(evalml_path, requirements_file_path)[source]#
Gets pip requirements for evalml as a requirements file
- Parameters
evalml_path – Path to evalml root.
requirements_file_path – Path to requirements file.
- Returns
Pip requirements for evalml in a singular string.
- evalml.utils.cli_utils.get_evalml_root()[source]#
Gets location where evalml is installed.
- Returns
Location where evalml is installed.
- evalml.utils.cli_utils.get_installed_packages()[source]#
Get dictionary mapping installed package names to their versions.
- Returns
Dictionary mapping installed package names to their versions.
- evalml.utils.cli_utils.get_sys_info()[source]#
Returns system information.
- Returns
List of tuples about system stats.
- evalml.utils.cli_utils.print_info()[source]#
Prints information about the system, evalml, and dependencies of evalml.
- evalml.utils.cli_utils.standardize_format(packages, ignore_packages=None, convert_to_conda=True)[source]#
Standardizes the format of the given packages.
- Parameters
packages – Requirements package generator object.
ignore_packages – List of packages to ignore. Defaults to None.
- Returns
List of packages with standardized format.