A pretty progressbar library
Project description
PRETTY PROGRESSBAR LIBRARY
The progress bar library that started with the idea of looking pretty
Installation
Only works with python3.
pip3 install ppl
How to use
Simple usage
import time
from ppl import pb
for i in pb(range(100)):
time.sleep(0.1)
Show task name along with the progress bar
import time
import random
from ppl import pb
total = 120
tasks = [
'Make paintball', 'Find dragons', 'Code in python', 'Take out the trash',
'Fill up water bottles for trip'
]
for task in tasks:
i = 0
for i in pb(range(total), task=task):
sleep_time = [.05, .04, .03, .02, .01][random.randint(0, 4)]
time.sleep(sleep_time) # emulating long-playing task
Custom bar length
By default the bar length is the full width of the terminal window
import time
from ppl import pb
for i in pb(range(100), bar_len=20):
time.sleep(0.1)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ppl-0.2.0-py3-none-any.whl
(4.8 kB
view details)
File details
Details for the file ppl-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ppl-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c41236cd614e3559c5f7b9abf602c9b6de9597bf6f6efeb0f7101131449b65f
|
|
| MD5 |
cb2738a695debf38e62e0e5fec4be778
|
|
| BLAKE2b-256 |
f671cab798131537a19114b80a01dfab8ffc9819012d6c96c60750247277ced0
|