main_info#
conda info 的 CLI 实现。
显示有关当前 conda 安装的信息。
类#
为渲染 |
函数#
|
|
|
用于在 |
|
从 |
|
漂亮地打印 |
|
返回上下文信息的字典。 |
|
返回表示 |
|
返回可用于显示 conda info 信息的数据 |
|
返回 |
|
根据 |
|
实现 |
属性#
- configure_parser(sub_parsers: argparse._SubParsersAction, **kwargs) argparse.ArgumentParser#
- dump_record(prec: conda.models.records.PackageRecord) dict[str, Any]#
从
prec返回键/值对的字典。不返回IGNORE_FIELDS中包含的键。- 参数:
prec --
PackageRecord对象。- 返回:
从
prec转储的元素字典
- pretty_package(prec: conda.models.records.PackageRecord) None#
漂亮地打印
PackageRecord的内容- 参数:
prec --
PackageRecord
- get_env_vars_str(info_dict: dict[str, Any]) str#
返回表示
get_info_dict返回的字典中的环境变量的可打印字符串。- 参数:
info_dict -- 来自
get_info_dict()的返回字典。- 返回:
要打印的字符串。
- get_main_info_str(info_dict: dict[str, Any]) str#
返回
info_dict内容的可打印字符串。- 参数:
info_dict --
get_info_dict()的输出。- 返回:
要打印的字符串。
- InfoComponents#
- class InfoRenderer(context)#
为渲染
InfoComponents提供render方法- render(components: collections.abc.Iterable[InfoComponents])#
迭代已注册的组件,通过
_<component>_component方法获取要渲染的数据,然后渲染它。
- _envs_component()#
- get_info_components(args: argparse.Namespace, context: conda.base.context.Context) set[InfoComponents]#
根据
args和context中的值确定需要显示哪些组件,并将它们作为set返回
- execute(args: argparse.Namespace, parser: argparse.ArgumentParser) int#
实现
conda info命令。conda infoconda info --baseconda info <package_spec> ...conda info --unsafe-channelsconda info --envsconda info --system