Skip to main content

Stunning progress bars for consoles for showing progress of python loops!

Project description

ConsoleBar

Python Module which creates stunning progress bars for showing progress of loops and iterables in python.

Installation

Simply using PyPi:

pip install consolebar

Usage

Simply run the following python code:

from consolebar import ConsoleBar

for item in ConsoleBar(object'''(list(), tuple(), dict(), range(), iterable, etc.)''', optional_params):
    #Do your stuff

Thats it!

Parameters

  • loop_to_execute (Required): Python loop parameter (list(), dictionary(), tuple(), str(), range(), etc.) i.e. iterable object for which progress bar is shown.
  • prefix (Optional): A string which is shown before the progress bar to describe the progress bar (Default: "Progress:").
  • suffix (Optional): A string which is shown after the progress bar to describe the progress percentage shown after the progress bar (Default: "Complete").
  • length (Optional): Length of the progress bar in charecters. Can be adjusted according to one's console charecter width (Default: 50).

Highly useful when you want to run huge loops but don't want to just see the blinking cursor of the console while it is executing.

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

consolebar-1.2.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file consolebar-1.2.tar.gz.

File metadata

  • Download URL: consolebar-1.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/2.7.15rc1

File hashes

Hashes for consolebar-1.2.tar.gz
Algorithm Hash digest
SHA256 1f28d8bd9ed3f95c04ab3d76d4046be83d8a6fd663aa086bf3faa23a6b59b383
MD5 37b814a8ff679414c7f1c2dcede6efab
BLAKE2b-256 2a2ed4dbe78f09de31f6139ac57871e92400d417d7a6acd7ff4d96c3c71b9ea2

See more details on using hashes here.

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