A simple progress bar for console
Project description
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
Close
Hashes for console_progressbar-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df92c344f2839aa9a7abf9665e3331ae715a5507b4b5109c102ced9a94ee4f2d |
|
MD5 | e6305e220b794035d12505ccf94bcc78 |
|
BLAKE2b-256 | 8013deb556e957791935b313d8ca93d4a90aa942e99985bd7c5e54fe9e32a47a |