The clint progress bar is based on an iterator.
urllib.urlretrieve() has a callback that reports the completion of a chunk downloading.
Can I set the iterator to be in a certain position everytime the callback is called?
The clint progress bar is based on an iterator. urllib.urlretrieve() has a callback that
Share
Looking at the source, i see that it only goes up. To start at a specific value, use:
To backspace, try:
That probably won’t work without using the
coloramamodule’s locate feature, in which case you’d be better off simply writing (“=” * percent_done + ” ” * percent_left).