Advertisement
jack06215

[alibe_bar] progress bar

Jun 28th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. from alive_progress import alive_bar, config_handler, bouncing_spinner_factory
  2. import time
  3.  
  4. # config_handler.set_global(length=40)#, spinner='fish_bouncing')
  5. # custom_spinner = bouncing_spinner_factory('╰(*°▽°*)╯', length=40, hiding=True)
  6. items = range(100000)  # retrieve your set of items
  7. with alive_bar(len(items), bar='classic', calibrate=2000) as bar:
  8.     for item in items:      
  9.         time.sleep(.001)
  10.         # process each item
  11.         bar()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement