GithubHelp home page GithubHelp logo

pombredanne / smart-progress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flying-sheep/smart-progress

0.0 1.0 1.0 71 KB

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

License: GNU General Public License v3.0

Python 100.00%

smart-progress's Introduction

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

smart-progress's People

Contributors

flying-sheep avatar

Watchers

 avatar

Forkers

priestd09

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.