Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 977 Bytes

README.rst

File metadata and controls

51 lines (32 loc) · 977 Bytes

Minibar

A (WIP) python progress bar

Travis CI build status

Installing

pip install minibar

Usage

import minibar
import time

for i in minibar.bar(range(100)):
    time.sleep(0.05)

Output:

Progress bar

Minibar can be customized

template = "{i}/{total} {bar} {elapsed}s {eta}"

for i in minibar(range(100), template=template):
    time.sleep(0.05)

The following widgets are avaliable:

  • {i} The numeric progress counter.
  • {total} The total value.
  • {bar} The progress bar.
  • {elapsed} The time ellapsed in seconds.
  • {eta} The estimated time to finish.