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

Uploaded Source

Built Distribution

smart_progress-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for smart-progress-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2721ecadb263611a1c9b322697e0b8d867bc4f4d29ccc06bf537179769485475
MD5 f209cf90c991831c425e481d013f37fd
BLAKE2b-256 b98c82d83744b312df33bc9d067fe8375429474a626c1818482d05101e2bee5d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for smart_progress-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38607a626de6a196349bf3eae1c9b321ccb22af385f1e33c4ba72d8f215d37ff
MD5 bbbceec2ff24907029686d1e1298236a
BLAKE2b-256 9a68b39441f2f9a0daba4caafba7374bc171685072dc99be0d29991219fc20d7

See more details on using hashes here.

Provenance

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