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

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.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

console_progressbar-1.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for console_progressbar-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3d443c17c6e055e75f26bddbddd85eb7249c795298b751f525d9ae767d40e6a1
MD5 d14033c0053ccfa3a23f3f559ae7741b
BLAKE2b-256 64a6942a09e25c93ed5ee117172e0baf539765920297c131a2d1c96bf9441b1a

See more details on using hashes here.

File details

Details for the file console_progressbar-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for console_progressbar-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 35f1bac13a9a817fb76384fd0f32a6550beb756f28df4d0da8495e2b49bfc023
MD5 fadb28c51c135fddcae4e8d792c27668
BLAKE2b-256 692781d8391e26a1ac159272b337ad111c2a3ec225ee54e04e0dd7b7cbbd6d3c

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