console-progressbar-1.1.2
توضیحات
A simple progress bar for console
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | console-progressbar-1.1.2 |
| نام | console-progressbar |
| نسخه کتابخانه | 1.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Carlos Alexandre S. da Fonseca |
| ایمیل نویسنده | carlos.alexandre@outlook.com |
| آدرس صفحه اصلی | https://github.com/bozoh/console_progressbar |
| آدرس اینترنتی | https://pypi.org/project/console-progressbar/ |
| مجوز | MIT |
.. image:: https://api.travis-ci.org/bozoh/console_progressbar.svg?branch=master
:target: https://travis-ci.org/bozoh/console_progressbar
.. image:: https://badge.fury.io/py/console-progressbar.svg
:target: https://badge.fury.io/py/console-progressbar
====================
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)
file - Optional : output file (Stream)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=2.7 | Python |
نحوه نصب
نصب پکیج whl console-progressbar-1.1.2:
pip install console-progressbar-1.1.2.whl
نصب پکیج tar.gz console-progressbar-1.1.2:
pip install console-progressbar-1.1.2.tar.gz