progressbar

eomaps.helpers.progressbar(it, prefix='', size=60, file=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)

A (very) simple progressbar generator.

Parameters:
  • it (iter) – The iterator for which a progressbr should be shown.

  • prefix (str, optional) – Prefix for the output. The default is β€œβ€.

  • size (int, optional) – The size of the progressbar (in characters). The default is 60.

  • file (filehandle, optional) – The file-handle to write to. The default is sys.stdout.

Yields:

item – Consecutive items from the iterator.