Skip to main content

A smart status bar for loops.

Project description

Description

It provides a smart status bar for loops. It can be used to display the progress of a long running operation

Install

pip3 install smart-status-bar 

Usage

loop:
    """ Statements """
    smart_status_bar.status_bar(index, total, message)

where
    index : current iteration of our loop
    total : total number of iteration of out loop
    message : Unique message for each iteration

Example


import smart_status_bar 
import time

ITERATIONS = 50
for i in range(ITERATIONS):
	smart_status_bar.status_bar(i, ITERATIONS, f"This is iteration {i}")
	time.sleep(0.2)

Alt text
Alt text

Project details


Download files

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

Source Distribution

smart-status-bar-1.0.3.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

smart_status_bar-1.0.3-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page