cli_utils#

CLI functions.

Module Contents#

Functions#

get_evalml_black_config

Gets configuration for black.

get_evalml_pip_requirements

Gets pip requirements for evalml (with pip packages converted to conda names)

get_evalml_requirements_file

Gets pip requirements for evalml as a requirements file

get_evalml_root

Gets location where evalml is installed.

get_installed_packages

Get dictionary mapping installed package names to their versions.

get_sys_info

Returns system information.

print_deps

Prints the version number of each dependency.

print_info

Prints information about the system, evalml, and dependencies of evalml.

print_sys_info

Prints system information.

standardize_format

Standardizes the format of the given packages.

Attributes Summary#

CONDA_TO_PIP_NAME

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_deps()[source]#

Prints the version number of each dependency.

evalml.utils.cli_utils.print_info()[source]#

Prints information about the system, evalml, and dependencies of evalml.

evalml.utils.cli_utils.print_sys_info()[source]#

Prints system information.

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.