py_tools_ds.processing package¶
Submodules¶
py_tools_ds.processing.progress_mon module¶
- class py_tools_ds.processing.progress_mon.ProgressBar(prefix='', suffix='Complete', decimals=1, barLength=50, show_elapsed=True, timeout=None, use_as_callback=False, out=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>)[source]¶
Bases:
object
- class py_tools_ds.processing.progress_mon.Timer(timeout=None, use_as_callback=False)[source]¶
Bases:
object
- property elapsed¶
- property timed_out¶
- py_tools_ds.processing.progress_mon.printPercentage(i, i_total)[source]¶
Print a percentage counter from within a loop.
Example: for i in range(100+1):
time.sleep(0.1) printPercentage(i)
- Parameters
i –
i_total –
- Returns
http://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console
- py_tools_ds.processing.progress_mon.tqdm_hook(t)[source]¶
Wraps tqdm instance. Don’t forget to close() or __exit__() the tqdm instance once you’re done with it (easiest using with syntax).
> with tqdm(…) as t: … reporthook = my_hook(t) … urllib.urlretrieve(…, reporthook=reporthook)
http://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console