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.0.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file smart-progress-1.0.0.tar.gz
.
File metadata
- Download URL: smart-progress-1.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2721ecadb263611a1c9b322697e0b8d867bc4f4d29ccc06bf537179769485475 |
|
MD5 | f209cf90c991831c425e481d013f37fd |
|
BLAKE2b-256 | b98c82d83744b312df33bc9d067fe8375429474a626c1818482d05101e2bee5d |
Provenance
File details
Details for the file smart_progress-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: smart_progress-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38607a626de6a196349bf3eae1c9b321ccb22af385f1e33c4ba72d8f215d37ff |
|
MD5 | bbbceec2ff24907029686d1e1298236a |
|
BLAKE2b-256 | 9a68b39441f2f9a0daba4caafba7374bc171685072dc99be0d29991219fc20d7 |