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: 02-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: 02-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: 02-19 20:33:34
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.0.4.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for pyprobar-0.1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 876973193904669892c8176a52c63e97655efbeff976c14c1add7bfed1bf3a92 |
|
MD5 | 2d5a87c93e9a868cbf101ba379676733 |
|
BLAKE2b-256 | c7b8839195d0f1d7bd022f4c86f608d0cf087c0b7c8ffaab83e3797ed13a7241 |