Skip to content

Instantly share code, notes, and snippets.

@hughdbrown
Last active February 16, 2017 17:24
Show Gist options
  • Save hughdbrown/6f79909fa2b3aeb8f7d201fe9759770b to your computer and use it in GitHub Desktop.
Save hughdbrown/6f79909fa2b3aeb8f7d201fe9759770b to your computer and use it in GitHub Desktop.
Use of python progressbar
# pip install progressbar2
import time
from progressbar import (
ProgressBar,
Percentage, Bar, ETA,
)
values = list(range(1, 10 + 1))
with ProgressBar(widgets=[Percentage(), Bar(), ETA()], max_value=len(values)) as pbar:
for i in values:
time.sleep(0.2)
pbar.update(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment