Skip to content

Smart progressbar with multiple backends supporting both explicit updating and tqdm-style iterable-wrapping

License

Notifications You must be signed in to change notification settings

pombredanne/smart-progress

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

smart-progress

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

About

Smart progressbar with multiple backends supporting both explicit updating and tqdm-style iterable-wrapping

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%