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
Built Distribution
File details
Details for the file smart-status-bar-1.0.3.tar.gz
.
File metadata
- Download URL: smart-status-bar-1.0.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dfb48ab78b0b8f773370f24570abc5467a173c12e32876a7c8f15890e057d39 |
|
MD5 | 41eecebc417b5a31e6822a2a28ab0e5e |
|
BLAKE2b-256 | 32d59293c6fadafe8484ebdc64ea613b8d223c69bd370d3e75de800a0964f4db |
File details
Details for the file smart_status_bar-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: smart_status_bar-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef01d5cf817c2896c147cfca4fe30e182c6f364f3c6ec00ee722ae223640f636 |
|
MD5 | dfa1c3abcc6853a61f48bb3edae7e14f |
|
BLAKE2b-256 | d318cf3b8b3267f3610e04c79cfbe056a12b7d61a9746cee4d7c55418b6a0c7a |