Skip to content

tqdm.asyncio#

Asynchronous progressbar decorator for iterators. Includes a default range iterator printing to stderr.

Usage:

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

tqdm_asyncio Objects#

[view source]

class tqdm_asyncio(std_tqdm)

Asynchronous-friendly version of tqdm.

as_completed#

[view source]

@classmethod
def as_completed(cls,
                 fs,
                 *,
                 loop=None,
                 timeout=None,
                 total=None,
                 **tqdm_kwargs)

Wrapper for asyncio.as_completed.

gather#

[view source]

@classmethod
async def gather(cls, *fs, loop=None, timeout=None, total=None, **tqdm_kwargs)

Wrapper for asyncio.gather.

tarange#

[view source]

def tarange(*args, **kwargs)

A shortcut for tqdm.asyncio.tqdm(range(*args), **kwargs).