main_info
#
CLI implementation for conda info.
Display information about current conda installation.
Functions#
|
|
|
Method used to populate |
|
Returns a dictionary of key/value pairs from |
|
Pretty prints contents of a |
|
Returns a dictionary of contextual information. |
|
Returns a printable string representing environment variables from the dictionary returned by |
|
Returns a printable string of the contents of |
|
Implements |
Attributes#
- configure_parser(sub_parsers: argparse._SubParsersAction, **kwargs) argparse.ArgumentParser #
- get_user_site() list[str] #
Method used to populate
site_dirs
inconda info
.- Returns:
List of directories.
- dump_record(prec: conda.models.records.PackageRecord) dict[str, Any] #
Returns a dictionary of key/value pairs from
prec
. Keys included inIGNORE_FIELDS
are not returned.- Parameters:
prec -- A
PackageRecord
object.- Returns:
A dictionary of elements dumped from
prec
- pretty_package(prec: conda.models.records.PackageRecord) None #
Pretty prints contents of a
PackageRecord
- Parameters:
prec -- A
PackageRecord
- get_info_dict() dict[str, Any] #
Returns a dictionary of contextual information.
- Returns:
Dictionary of conda information to be sent to stdout.
- get_env_vars_str(info_dict: dict[str, Any]) str #
Returns a printable string representing environment variables from the dictionary returned by
get_info_dict
.- Parameters:
info_dict -- The returned dictionary from
get_info_dict()
.- Returns:
String to print.
- get_main_info_str(info_dict: dict[str, Any]) str #
Returns a printable string of the contents of
info_dict
.- Parameters:
info_dict -- The output of
get_info_dict()
.- Returns:
String to print.
- execute(args: argparse.Namespace, parser: argparse.ArgumentParser) int #
Implements
conda info
commands.conda info
conda info --base
conda info <package_spec> ...
conda info --unsafe-channels
conda info --envs
conda info --system