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 by using the parameters 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
Tip: Searchcharmap
in win10 start menu, you can find a lot of interesting characters.
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.3.tar.gz
(7.6 kB
view hashes)
Built Distribution
pyprobar-0.1.1.3-py3-none-any.whl
(14.5 kB
view hashes)
Close
Hashes for pyprobar-0.1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93e6d69dcd4db16ed4b61a1db33e3a21f175a5ded3b04207b315578a3ef7f34b |
|
MD5 | 4d69cd02c0fe5e0b2534d797d47f10f9 |
|
BLAKE2b-256 | 4aaaeb2496c69da4420f8730d9b9be39e1c6a2d0cce275500460324ecbb2f847 |