skip to navigation
skip to content

Not Logged In

ttd 0.0.1

Time Till Done (ttd) is a simple progress bar for your long running Python scripts

Time Till Done ttd for short is a simple progress bar to help give you some feedback for your long running Python scripts.

Installation

pip install ttd

Demo Gif

Usage

The easiest way to use the module is in a for loop as demonstrated in the demo gif above and the code snippet below.

import time
from ttd import ttd

for i in ttd(range(99)):
    time.sleep(.05)

You may also use update the progress bar manually by calling print_ttd(index, total) throughout your script as demonstrated below.

import time
from ttd import print_ttd

print_ttd(0, 5)
time.sleep(.5)

print_ttd(1, 5)
time.sleep(.04)

print_ttd(2, 5)
time.sleep(.5)

print_ttd(3, 5)
time.sleep(.5)

print_ttd(4, 5)
time.sleep(.5)

print_ttd(5, 5)
print("\ndone")
 
File Type Py Version Uploaded on Size
ttd-0.0.1.tar.gz (md5) Source 2014-07-17 1KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 18 downloads in the last week
  • 68 downloads in the last month