barify-0.1.6
توضیحات
generate text progress bar for given values
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | barify-0.1.6 |
| نام | barify |
| نسخه کتابخانه | 0.1.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Guillaume Ardaud |
| ایمیل نویسنده | gardaud@acm.org |
| آدرس صفحه اصلی | https://github.com/gardaud/barify |
| آدرس اینترنتی | https://pypi.org/project/barify/ |
| مجوز | MIT |
A simple library to generate text progress bars for given values.
To install:
`pip install barify`
Example:
````
from barify import barify
print barify(84)
````
Prints out:
`[||||||||--]`
Here are the available optional arguments:
- `min_value`: The minimum value in the interval of the passed value. Default is 0.
- `max_val`: The maximum value in the interval of the passed value. Default is 100.
- `delimiters`: A 2 character string; left character is used for the left delimiter of the progress bar, and right character is used for the right delimiter of the progress bar. Default is '[]'
- `bar`: A 1 character string; character to use to represent a full bar. Default is '|'
- `empty`: A 1 character string; character to use to represent an empty bar. Default is '-'
- `num_bars`: The number of bars (both full and empty) that should compose the progress bar. Default is 10.
نحوه نصب
نصب پکیج whl barify-0.1.6:
pip install barify-0.1.6.whl
نصب پکیج tar.gz barify-0.1.6:
pip install barify-0.1.6.tar.gz