Skip to main content

A simple progress bar for console

Project description

https://api.travis-ci.org/bozoh/console_progressbar.svg?branch=master

Console Progress Bar

It’s a very tiny lib to help devs to print a progress bar in console

Usage

Here a very simple sample:

import time
from console_progressbar import ProgressBar

pb = ProgressBar(total=100,prefix='Here', suffix='Now', decimals=3, length=50, fill='X', zfill='-')
pb.print_progress_bar(2)
time.sleep(5)
pb.print_progress_bar(25)
time.sleep(5)
pb.print_progress_bar(50)
time.sleep(5)
pb.print_progress_bar(95)
time.sleep(5)
pb.print_progress_bar(100)

Parameters Description

params:

total       - Required  : total iterations (Int)
prefix      - Optional  : prefix string (Str)
suffix      - Optional  : suffix string (Str)
decimals    - Optional  : positive number of decimals in percent complete (Int)
length      - Optional  : character length of bar (Int)
fill        - Optional  : bar fill character (Str)
zfill       - Optional  : bar zero fill character (Str)

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

console_progressbar-1.1.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file console_progressbar-1.1.1.tar.gz.

File metadata

  • Download URL: console_progressbar-1.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for console_progressbar-1.1.1.tar.gz
Algorithm Hash digest
SHA256 6c830e83218508d87853d6085b8bece79aec6d074d10ef453eb3b66a8bb57771
MD5 3b33a19878688516da322065b81c716a
BLAKE2b-256 70dd5103450098d904eb276c188fe500e1d757cb82ffdc02c02aa4de8faaccea

See more details on using hashes here.

Supported by

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