An easy-to-use progress bar tool for python.
Project description
Pyprobar
An easy-to-use progress bar tool for python.
Installation
pip install pyprobar
Synopsis
28.71% |████████>>>>>>>>>>>>>>>>> | 0:00:22|0:00:31 ETC: 05-20 18:08:15
Usage
Use probar
or bar
for different situations:
from pyprobar import bar, probar
import time
for idx, x in probar(range(1234)):
time.sleep(0.02)
>>> 18.31%|█████>>>>> | 0:00:20|0:00:25 ETC: 05-20 19:00:39
import numpy as np
N = 1024
a = np.linspace(2, 5, N)
for idx, i in enumerate(a):
time.sleep(0.01)
bar(idx, N)
>>> 100.00% |███████████████████████████| 0:00:00|0:00:10 ETC: 05-20 20:33:34
You can set your own progress bar through parameter symbol_1
and symbol_2
:
for idx, i in probar(range(1234), symbol_2="o"):
time.sleep(0.01)
>>> 23.10%|██████ooooooooooooooooooo | 0:00:10|0:00:14 ETC: 05-20 17:29:57
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
pyprobar-0.1.1.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for pyprobar-0.1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c90ff6f2913b87e69e0cf026e66a9af84c87278d69c48df470161b05d3075a1 |
|
MD5 | 6d9f6f53b93ebaa07d76774481f666d4 |
|
BLAKE2b-256 | bed4d79c9832b1f6468408f134e73e896d6e99e9cf22891dbbefa2e60ec44752 |