Skip to content

Instantly share code, notes, and snippets.

@JohannesBuchner
Last active December 16, 2015 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohannesBuchner/5370285 to your computer and use it in GitHub Desktop.
Save JohannesBuchner/5370285 to your computer and use it in GitHub Desktop.
Python progressbar
import progressbar
pbar = progressbar.ProgressBar(widgets=[progressbar.Percentage(),
progressbar.Counter('%5d'), progressbar.Bar(), progressbar.ETA()])
for obj in pbar(to_handle):
# deal with object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment