Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tqdm #662

Closed
wants to merge 1 commit into from
Closed

Add tqdm #662

wants to merge 1 commit into from

Conversation

frahik
Copy link

@frahik frahik commented Jun 17, 2016

Why this framework/library/software/resource is awesome?

Add a progress meter to your loops in a second

Closing issue #648 Add tqdm

Vote for this pull request

Who agrees that this change should be merged could add your reactions (e.g. 👍) to this pull request.

New library added

@casperdcl
Copy link

casperdcl commented Aug 25, 2016

Nice to see this here! I'd change from what you wrote originally, though:

* [tqdm] (https://github.com/tqdm/tqdm) - Add a progress meter to your loops in a second.

to:

* [tqdm](https://github.com/tqdm/tqdm) - Fast, extensible progress bar for loops and CLI.

What do you think?

To further expatiate on why this is awesome, tqdm does CLI as well as über simple iterable wrapping.

Using as a CLI pipe:

$ 7z a -bd -r backup.7z docs/ | grep Compressing |
    tqdm --total $(find docs/ -type f | wc -l) --unit files >> backup.log
100%|███████████████████████████████▉| 8014/8014 [01:37<00:00, 82.29files/s]

or in a script:

from tqdm import tqdm
for i in tqdm(range(1000)):
  pass

In summary, tqdm will:

  • wrap pretty much any python iterable
  • print an easily customisable ascii or unicode progressbar + stats to the terminal
  • or display a nice bar in an ipython/jupyter notebook
  • or display a "download" style bar using matplotlib
  • work with pandas functions and numpy arrays
  • work on py2 and py3
  • remain permissive open source
  • (probably) be lower computational overhead than any other popular alternative
  • (probably) be fewer characters of code to use than any other popular alternative
  • (probably) have more features than any other popular alternative
  • save lives and sanity

-- Casper, main tqdm dev

This was referenced Aug 25, 2016
@CrazyPython
Copy link

CrazyPython commented Aug 25, 2016

@casperdcl no, use:

* [tqdm](https://github.com/tqdm/tqdm) - Fast, *extremely simple* extensible progress bar for loops and CLI.

Simplicity is tqdm's #1 feature.

@casperdcl
Copy link

@vinta this has had more that 20 votes for ages (since last year), but please don't merge this in until we release tqdm v5... which might only happen in another few months (need to address all of tqdm/tqdm/milestone/v5). We'd like it to be really nicely polished before it appears on the awesome list.

@swaroopch swaroopch mentioned this pull request Sep 29, 2017
casperdcl added a commit to tqdm/awesome-python that referenced this pull request May 20, 2019
- closes vinta#662
- closes #648
@casperdcl
Copy link

@vinta I don't think it's worth waiting any longer - happy for you to go ahead and merge this in. At a few million downloads per month, 10k+ stars and sourcerank 22 (see below) it's probably silly for me to hold you back.

dloads stars sourcerank

As I'd said in #662 (comment),

it would be great to change

* [tqdm] (https://github.com/tqdm/tqdm) - Add a progress meter to your loops in a second.

to

* [tqdm](https://github.com/tqdm/tqdm) - Fast, extensible progress bar for loops and CLI.

I'll open a new PR

@casperdcl casperdcl mentioned this pull request May 20, 2019
@techtonik
Copy link
Contributor

This needs to be rebased.

@casperdcl
Copy link

this doesn't need to be rebased @techtonik @vinta #1293 supercedes this

@vinta
Copy link
Owner

vinta commented May 27, 2019

@casperdcl It does. Could you fix the conflicts?

@casperdcl
Copy link

@vinta erm I meant merge #1293 and don't merge this (#662)

@vinta vinta closed this in c90eb8b May 27, 2019
kiku-jw pushed a commit to awesome-lists-to-learning/awesome-python that referenced this pull request Jun 14, 2019
omeh2003 pushed a commit to omeh2003/awesome-python that referenced this pull request Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants