Skip to content

tqdm.rich#

rich.progress decorator for iterators.

Usage:

>>> from tqdm.rich import trange, tqdm
>>> for i in trange(10):
...     ...

tqdm_rich Objects#

[view source]

class tqdm_rich(std_tqdm)

Experimental rich.progress GUI version of tqdm!

__init__#

[view source]

def __init__(*args, **kwargs)

This class accepts the following parameters in addition to the parameters accepted by tqdm.

Parameters

  • progress: tuple, optional
    arguments for rich.progress.Progress().
  • options: dict, optional
    keyword arguments for rich.progress.Progress().

reset#

[view source]

def reset(total=None)

Resets to 0 iterations for repeated use.

Parameters

  • total: int or float, optional. Total to use for the new bar.

trrange#

[view source]

def trrange(*args, **kwargs)

Shortcut for tqdm.rich.tqdm(range(*args), **kwargs).