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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for smart-progress-1.0.1.tar.gz
Algorithm Hash digest
SHA256 00e13315d4e8911538c1b01bb390944f70665a4ad55676a95a09cdcdf1ae337f
MD5 739ddf32391d0577801c8f23150a2b37
BLAKE2b-256 c28ff7d70c88429b7e9503cf4c9eb1aebeb8a1e2b9dfdc23f6af704a208b12d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smart_progress-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a79316deb716492cea24cc0aec53a340295726083a5c09b53eda43c6178a4e6a
MD5 8b7db8b4de3875f5b6db258b79a5e8ca
BLAKE2b-256 fac380d82c9ca96ba13ce412c15b8b3abb284cce3263ff2e5eb577b7760ecdc1

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