fspath.progressbar module

A progress bar for the console.

fspath.progressbar.humanizeBytes(size, precision=2)[source]

Determine the human readable value of bytes on 1024 base (1KB=1024B).

fspath.progressbar.progressbar(step, maxSteps, barSize=None, pipe=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, prompt='', fillchar='=', restchar=' ')[source]

Show progress-bar

  • step: step number

  • maxSteps: max. steps

  • barSize: char length of the progress-bar