Smart progressbar with multiple backends selected depending on the environment
Project description
Smart progressbar with multiple backends supporting both explicit updating and tqdm-style iterable-wrapping
Usage
progressbar(iterable=None, length=None, label=None,
show_eta=True, show_percent=None, show_pos=False,
item_show_func=None, ..., info_sep=' ', ...)
Check click.progressbar for the parameters and details. As of now, the IPython backend ignores all bar drawing and terminal-related parameters. (The ones not listed above)
Example
from smart_progress import progressbar
with progressbar([1,2,3]) as bar:
for item in bar:
do_work(item)
or
con = connection(...)
with con, progressbar(length=con.tot_size()) as bar:
while not con.is_eof():
block = con.retrieve_block()
do_work(block)
bar.update(len(block))
Dependencies
click 5.x
IPython 4.x + ipywidgets
(alternatively falls back to IPython 3.x)
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
smart-progress-1.0.1.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file smart-progress-1.0.1.tar.gz
.
File metadata
- Download URL: smart-progress-1.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00e13315d4e8911538c1b01bb390944f70665a4ad55676a95a09cdcdf1ae337f |
|
MD5 | 739ddf32391d0577801c8f23150a2b37 |
|
BLAKE2b-256 | c28ff7d70c88429b7e9503cf4c9eb1aebeb8a1e2b9dfdc23f6af704a208b12d0 |
File details
Details for the file smart_progress-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: smart_progress-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a79316deb716492cea24cc0aec53a340295726083a5c09b53eda43c6178a4e6a |
|
MD5 | 8b7db8b4de3875f5b6db258b79a5e8ca |
|
BLAKE2b-256 | fac380d82c9ca96ba13ce412c15b8b3abb284cce3263ff2e5eb577b7760ecdc1 |