Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

datascopeanalytics/python-timer

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
14 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

 
 
 

Contributors

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.