Progress Bars in Python

  • I've always just used `sys.stdout.write("\r%i/%i" %(c, n)); sys.stdout.flush()`

    That is exactly what this library does: "tqdm does not require any dependencies (not even curses!), just Python and an environment supporting carriage return \r and line feed \n control characters." -- https://github.com/tqdm/tqdm

    Seems unnecessary imo to depend on an external library just to wrap and auto-prettify those 2 stdout commands.

  • I’m using this for progress bar in python http://click.palletsprojects.com/en/5.x/utils/