himalaya.progress_bar.bar¶
- himalaya.progress_bar.bar(iterable, title='', use_it=True)[source]¶
Simple API for progress_bar.
- Parameters
- iterableiterable
Iterable that will make the progress bar progress.
- titlestr
Message to include at end of progress bar.
- use_itbool
If False, return the iterable unchanged, and does not show a progress bar.
Examples
>>> import time >>> from himalaya.progress_bar import bar >>> for ii in bar(range(10)): >>> time.sleep(0.5)