Skip to main content

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

Project details


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.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

smart_progress-1.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file smart-progress-1.0.2.tar.gz.

File metadata

File hashes

Hashes for smart-progress-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3a2ef36aa7d3846476d44fe436ad6be68bd384e3cea4655a6185bcc82a31d280
MD5 03cbc752b0060b830c8ae378b2b9dda5
BLAKE2b-256 a5f1df703dee1e2deac70051e4b94e8facecf5a28c779b9e7ece9a05f62c7a89

See more details on using hashes here.

File details

Details for the file smart_progress-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_progress-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6683be6df510d0fdf3dbbb1f121e7d58627528ae09d4e7ed50d117632c2ab311
MD5 e299adff567ae9fd159745efa3bc820b
BLAKE2b-256 5791878605342664684ddbe5caa1a36b178433c8fa3680edbb37fec03ba4b41d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page