console#

Defines a "console" reporter backend.

This reporter backend provides the default output for conda.

Classes#

QuietProgressBar

Progress bar class used when no output should be printed

TQDMProgressBar

Progress bar class used for tqdm progress bars

Spinner

Helper class that provides a standard way to create an ABC using

QuietSpinner

Helper class that provides a standard way to create an ABC using

ConsoleReporterRenderer

Default implementation for console reporting in conda

Functions#

conda_reporter_backends()

Reporter backend for console

class QuietProgressBar(description: str, **kwargs)#

Bases: conda.plugins.types.ProgressBarBase

Progress bar class used when no output should be printed

update_to(fraction) None#
refresh() None#
close() None#
class TQDMProgressBar(description: str, position=None, leave=True, **kwargs)#

Bases: conda.plugins.types.ProgressBarBase

Progress bar class used for tqdm progress bars

update_to(fraction) None#
close() None#
refresh() None#
static _tqdm(*args, **kwargs)#

Deferred import so it doesn't hit the conda activate paths.

class Spinner(message, fail_message='failed\n')#

Bases: conda.plugins.types.SpinnerBase

Helper class that provides a standard way to create an ABC using inheritance.

spinner_cycle#
start()#
stop()#
_start_spinning()#
__enter__()#
__exit__(exc_type, exc_val, exc_tb)#
class QuietSpinner(message: str, fail_message: str = 'failed\n')#

Bases: conda.plugins.types.SpinnerBase

Helper class that provides a standard way to create an ABC using inheritance.

__enter__()#
__exit__(exc_type, exc_val, exc_tb)#
class ConsoleReporterRenderer#

Bases: conda.plugins.types.ReporterRendererBase

Default implementation for console reporting in conda

detail_view(data: dict[str, str | int | bool], **kwargs) str#

Render the output in a "tabular" format.

envs_list(prefixes, output=True, **kwargs) str#

Render a list of environments

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

Determines whether to return a TQDMProgressBar or QuietProgressBar

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

Determines whether to return a Spinner or QuietSpinner

prompt(message='Proceed', choices=('yes', 'no'), default='yes') str#

Implementation of a prompt dialog

conda_reporter_backends()#

Reporter backend for console