Skip to main content

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

Project description

Time Till Done (ttd)

.. image::

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


``pip install ttd``

Demo Gif
.. image::


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

.. code:: python

import time
from ttd import ttd

for i in ttd(range(99)):

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

.. code:: python

import time
from ttd import print_ttd

print_ttd(0, 5)

print_ttd(1, 5)

print_ttd(2, 5)

print_ttd(3, 5)

print_ttd(4, 5)

print_ttd(5, 5)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ttd, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size ttd-0.1.0.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page