news.volyx.in

Tqdm (Python) (tqdm.github.io)

738 points by manjana · 1738 days ago · 162 comments on HN

Article summary

The article discusses the Python library tqdm, which provides a progress meter for loops. It can be used to display the progress of any iterable, and it has a low overhead of about 60ns per iteration. The library is platform-independent and works in any console or GUI. It also has various features such as predicting the remaining time and skipping unnecessary iteration displays.

Main themes

  • Python libraries
  • Progress meters
  • CLI tools
  • Language comparison
  • Library effectiveness
  • Development experience

What commenters say

  • Tqdm is a fantastic tool for managing and tracking simple loops in Python.
  • The default smoothing parameter in tqdm can be misleading, and setting it to 0 provides a more accurate estimate of the remaining time.
  • Some users prefer Click for building CLIs, while others find it too magical and prefer argparse or other libraries.
  • Tqdm has been around for a while, but it has been gaining traction recently, and its popularity is due to its simplicity and effectiveness.
  • There is a need for a similar library in other languages, such as Golang.
  • Some users have mixed feelings about Click, finding it useful but also too global and spooky.
  • Tqdm can be used in conjunction with other libraries, such as Click, to create a seamless user experience.