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
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
File details
Details for the file smart-progress-1.0.2.tar.gz.
File metadata
- Download URL: smart-progress-1.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a2ef36aa7d3846476d44fe436ad6be68bd384e3cea4655a6185bcc82a31d280
|
|
| MD5 |
03cbc752b0060b830c8ae378b2b9dda5
|
|
| BLAKE2b-256 |
a5f1df703dee1e2deac70051e4b94e8facecf5a28c779b9e7ece9a05f62c7a89
|
File details
Details for the file smart_progress-1.0.2-py3-none-any.whl.
File metadata
- Download URL: smart_progress-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6683be6df510d0fdf3dbbb1f121e7d58627528ae09d4e7ed50d117632c2ab311
|
|
| MD5 |
e299adff567ae9fd159745efa3bc820b
|
|
| BLAKE2b-256 |
5791878605342664684ddbe5caa1a36b178433c8fa3680edbb37fec03ba4b41d
|