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.2.tar.gz
(6.5 kB
view hashes)
Built Distribution
pyprobar-0.1.1.2-py3-none-any.whl
(12.5 kB
view hashes)
Close
Hashes for pyprobar-0.1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f98d11cce8b21545e6589ae9e7a70be8b457aa51b68c0ad3e48a2fc1e0e5b013 |
|
MD5 | 5e72c685affbddcfe3e6653c32156ecf |
|
BLAKE2b-256 | 3506038c577f5668b90a896d751c2df52c228a3f548343792d7f397bfe78346a |