datascopeanalytics/python-timer

Name: python-timer

Owner: Datascope Analytics

Description: a wrapper for long-running tasks that iterate over many things, printing friendly 'percentage done' messages to standard error.

Created: 2015-11-12 22:06:36.0

Updated: 2015-11-12 22:06:37.0

Pushed: 2015-10-15 20:20:16.0

Homepage: null

Size: 184

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

python-timer

a wrapper for long-running tasks that iterate over many things, printing friendly 'percentage done' messages to standard error.

rt timer
stuff in timer.show_progress(range(100)):
# .... analysis here
timer.sleep(.5)

prints (to standard error) :

1 min elapsed, 25.0 % done, ETA:   0.3 min
1 min elapsed, 45.0 % done, ETA:   0.3 min
2 min elapsed, 65.0 % done, ETA:   0.3 min
3 min elapsed, 85.0 % done, ETA:   0.3 min

install

Now available on the python-package-index. To install, just type pip install python-timer from the command-line.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.