Progress Bar for Console Programs as Iterator (Python)
A small proxy iterator showing a progress bar on the console. Only works with iterators that provide a length (i.e.len(iterator) must be defined). ## {{{ http://code.activestate.com/recipes/576986/ (r6) import sys def progressbar(it, prefix = “”, size = 60): count = len(it) def _show(_i): x = int(size*_i/count)…





