Skip to content

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

License

Notifications You must be signed in to change notification settings

gabegaster/python-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-timer

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

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

prints (to standard error) :

: 0.1 min elapsed, 25.0 % done, ETA:   0.3 min
: 0.1 min elapsed, 45.0 % done, ETA:   0.3 min
: 0.2 min elapsed, 65.0 % done, ETA:   0.3 min
: 0.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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages