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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for smart-status-bar-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1dfb48ab78b0b8f773370f24570abc5467a173c12e32876a7c8f15890e057d39
MD5 41eecebc417b5a31e6822a2a28ab0e5e
BLAKE2b-256 32d59293c6fadafe8484ebdc64ea613b8d223c69bd370d3e75de800a0964f4db

See more details on using hashes here.

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

Hashes for smart_status_bar-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef01d5cf817c2896c147cfca4fe30e182c6f364f3c6ec00ee722ae223640f636
MD5 dfa1c3abcc6853a61f48bb3edae7e14f
BLAKE2b-256 d318cf3b8b3267f3610e04c79cfbe056a12b7d61a9746cee4d7c55418b6a0c7a

See more details on using hashes here.

Supported by

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