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)
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for smart_status_bar-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef01d5cf817c2896c147cfca4fe30e182c6f364f3c6ec00ee722ae223640f636 |
|
MD5 | dfa1c3abcc6853a61f48bb3edae7e14f |
|
BLAKE2b-256 | d318cf3b8b3267f3610e04c79cfbe056a12b7d61a9746cee4d7c55418b6a0c7a |