reporters#

包含用于 conda 中输出渲染的函数

函数#

_get_render_func(→ Callable)

检索要使用的渲染函数

render(→ None)

用于在 conda 中渲染输出

get_progress_bar(→ conda.plugins.types.ProgressBarBase)

检索当前配置的 reporter 后端的进度条

get_progress_bar_context_manager(...)

检索要与注册的 reporter 一起使用的进度条上下文管理器

get_spinner(→ conda.plugins.types.SpinnerBase)

检索要与注册的 reporter 一起使用的微调器

confirm_yn(→ bool)

显示“是/否”确认输入

属性#

logger#
_get_render_func(style: str | None = None) Callable#

检索要使用的渲染函数

render(data, style: str | None = None, **kwargs) None#

用于在 conda 中渲染输出

输出将以“json”或正常的“console”输出到 stdout 呈现。此函数允许我们为这两种类型的输出配置不同的 reporter 后端。

get_progress_bar(description: str, **kwargs) conda.plugins.types.ProgressBarBase#

检索当前配置的 reporter 后端的进度条

get_progress_bar_context_manager() contextlib.AbstractContextManager#

检索要与注册的 reporter 一起使用的进度条上下文管理器

get_spinner(message: str, fail_message: str = 'failed\n') conda.plugins.types.SpinnerBase#

检索要与注册的 reporter 一起使用的微调器

confirm_yn(message: str = 'Proceed', default='yes', dry_run=None) bool#

显示“是/否”确认输入