main_info#
CLI implementation for conda info.
Display information about current conda installation.
Classes#
Provides a |
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 the data that can be used to display information for conda info |
|
Returns a printable string of the contents of |
|
Based on values in |
|
Implements |
Attributes#
- configure_parser(sub_parsers: argparse._SubParsersAction, **kwargs) argparse.ArgumentParser#
- get_user_site() list[str]#
Method used to populate
site_dirsinconda info.- 返回:
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_FIELDSare not returned.- 参数:
prec -- A
PackageRecordobject.- 返回:
A dictionary of elements dumped from
prec
- pretty_package(prec: conda.models.records.PackageRecord) None#
Pretty prints contents of a
PackageRecord- 参数:
prec -- A
PackageRecord
- get_info_dict() dict[str, Any]#
Returns a dictionary of contextual information.
- 返回:
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.- 参数:
info_dict -- The returned dictionary from
get_info_dict().- 返回:
String to print.
- get_main_info_display(info_dict: dict[str, Any]) dict[str, str]#
Returns the data that can be used to display information for conda info
- get_main_info_str(info_dict: dict[str, Any]) str#
Returns a printable string of the contents of
info_dict.- 参数:
info_dict -- The output of
get_info_dict().- 返回:
String to print.
- InfoComponents#
- class InfoRenderer(context)#
Provides a
rendermethod for renderingInfoComponents- render(components: collections.abc.Iterable[InfoComponents])#
Iterates through the registered components, obtains the data to render via a
_<component>_componentmethod and then renders it.
- _envs_component()#
- get_info_components(args: argparse.Namespace, context: conda.base.context.Context) set[InfoComponents]#
Based on values in
argsandcontextdetermine which components need to be displayed and return them as aset
- execute(args: argparse.Namespace, parser: argparse.ArgumentParser) int#
Implements
conda infocommand.conda infoconda info --baseconda info <package_spec> ...conda info --unsafe-channelsconda info --envsconda info --system