generate text progress bar for given values
Project description
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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
barify-0.1.6.tar.gz
(2.1 kB
view details)
File details
Details for the file barify-0.1.6.tar.gz
.
File metadata
- Download URL: barify-0.1.6.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae895e4dd6ff5a1863708b0eaba89f1fc61f267243ca07f880e37c6f8e44511d |
|
MD5 | 75511b94eb604fb189dd6bd23c2b2306 |
|
BLAKE2b-256 | d9bd77b48e77f614f6a0473d9e6191a870ad752ede90aae1b5a375a36d3d3f61 |