<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/tqdm-is-awesome-in-python-h5u24c2km" -->

---
title: "tqdm" is Awesome in Python | daily.dev
description: A hands-on walkthrough of the tqdm Python library for adding progress bars to scripts, covering installation via pip or UV, manual progress updates, using tqdm...
canonical: https://daily.dev/posts/tqdm-is-awesome-in-python-h5u24c2km
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: "tqdm" is Awesome in Python | daily.dev
og:description: A hands-on walkthrough of the tqdm Python library for adding progress bars to scripts, covering installation via pip or UV, manual progress updates, using tqdm...
og:url: https://daily.dev/posts/tqdm-is-awesome-in-python-h5u24c2km
og:image: https://api.daily.dev/og/posts/h5U24C2kM.png
og:image:alt: "tqdm" is Awesome in Python
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# "tqdm" is Awesome in Python

**[Indently](https://daily.dev/sources/indently)** · 7 min read · 3 upvotes · 1 comments

## Summary

A hands-on walkthrough of the tqdm Python library for adding progress bars to scripts, covering installation via pip or UV, manual progress updates, using tqdm as a for-loop wrapper, customizing appearance (ASCII characters, color, column width, units), controlling whether the bar persists with the leave argument, defining a fully custom bar_format string, and dynamically updating the description text as progress changes. Includes a sponsor mention for the Zed code editor.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=gDDvH0ZyM7E>

## Questions this post answers

### How do I create a custom progress bar format with tqdm in Python?

Set the bar_format keyword argument when creating a tqdm object with a custom string containing placeholders like {bar}, {n_fmt}, and {total_fmt}. You can mix in your own text, such as 'uploading' before the bar and 'files uploaded' after the count placeholders. Additional formatting keys are documented in the tqdm repository, though heavy customization can impact performance.

_Developers customizing progress bars for polished CLI tools can find more Python tutorials on daily.dev._

### How do I manually update a tqdm progress bar instead of using a for loop?

Create a tqdm object with an iterable and description, then call its update() method with a numeric argument to advance the bar by that amount cumulatively. For example, calling update(50) then update(20) then update(30) moves the bar to 50%, 70%, and 100% respectively, which is useful for simulating steps like file downloads.

_Anyone tracking multi-step processes in Python can browse more tqdm usage patterns on daily.dev._

### What does the leave argument do in tqdm and how do I hide a finished progress bar?

Setting leave=False in a tqdm object removes the progress bar from the screen once it reaches 100%, while leave=True (the default) keeps it displayed after completion. This is useful when you want a clean terminal output, such as printing a completion message without a leftover bar.

_Developers polishing terminal output can keep exploring Python library tips on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@hxxmz** · 0 upvotes

> Perfect timing, building a few terminal-based workflows right now and they really needed a progress bar. Super straightforward walkthrough, thanks for sharing!

## Similar posts on daily.dev

- [PyCoder’s Weekly](https://daily.dev/posts/pycoder-s-weekly-oqwpneq66) · Planet Python · 0 upvotes · 0 comments
- [How to Generate QR Codes in Python](https://daily.dev/posts/how-to-generate-qr-codes-in-python-aztm7jwn0) · Towards Data Science · 1 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#cli](https://daily.dev/tags/cli)

[View this post on daily.dev](https://daily.dev/posts/tqdm-is-awesome-in-python-h5u24c2km)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"\"tqdm\" is Awesome in Python","url":"https://daily.dev/posts/tqdm-is-awesome-in-python-h5u24c2km","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/tqdm-is-awesome-in-python-h5u24c2km"},"datePublished":"2026-09-06T16:09:45.139Z","dateModified":"2026-09-14T09:00:00.220Z","description":"A hands-on walkthrough of the tqdm Python library for adding progress bars to scripts, covering installation via pip or UV, manual progress updates, using tqdm...","image":"https://i.ytimg.com/vi/gDDvH0ZyM7E/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/gDDvH0ZyM7E/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Indently","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Indently","logo":"https://media.daily.dev/image/upload/s--u6wAXJI9--/f_auto/v1725038127/logos/indently","url":"https://daily.dev/sources/indently"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/tqdm-is-awesome-in-python-h5u24c2km","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"python,cli","timeRequired":"PT7M","video":{"@type":"VideoObject","name":"\"tqdm\" is Awesome in Python","description":"A hands-on walkthrough of the tqdm Python library for adding progress bars to scripts, covering installation via pip or UV, manual progress updates, using tqdm...","thumbnailUrl":"https://i.ytimg.com/vi/gDDvH0ZyM7E/sddefault.jpg","uploadDate":"2026-09-06T16:09:45.139Z","duration":"PT7M","url":"https://api.daily.dev/r/h5U24C2kM","embedUrl":"https://www.youtube.com/embed/gDDvH0ZyM7E"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Indently","item":"https://daily.dev/sources/indently"},{"@type":"ListItem","position":3,"name":"\"tqdm\" is Awesome in Python"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/tqdm-is-awesome-in-python-h5u24c2km","comment":[{"@type":"Comment","text":"Perfect timing, building a few terminal-based workflows right now and they really needed a progress bar. Super straightforward walkthrough, thanks for sharing!","datePublished":"2026-09-13T08:16:41.945Z","url":"https://daily.dev/posts/h5U24C2kM#c-R6lPUrtQz","author":{"@type":"Person","name":"Hamza","url":"https://daily.dev/hxxmz","image":"https://media.daily.dev/image/upload/s--mxBWueVg--/f_auto/v1762150940/avatars/avatar_AQ5aEjf6JlGohTnflWBjv?_a=BAMAK+ZW0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/tqdm-is-awesome-in-python-h5u24c2km#faq","mainEntity":[{"@type":"Question","name":"How do I create a custom progress bar format with tqdm in Python?","acceptedAnswer":{"@type":"Answer","text":"Set the bar_format keyword argument when creating a tqdm object with a custom string containing placeholders like {bar}, {n_fmt}, and {total_fmt}. You can mix in your own text, such as 'uploading' before the bar and 'files uploaded' after the count placeholders. Additional formatting keys are documented in the tqdm repository, though heavy customization can impact performance. Developers customizing progress bars for polished CLI tools can find more Python tutorials on daily.dev."}},{"@type":"Question","name":"How do I manually update a tqdm progress bar instead of using a for loop?","acceptedAnswer":{"@type":"Answer","text":"Create a tqdm object with an iterable and description, then call its update() method with a numeric argument to advance the bar by that amount cumulatively. For example, calling update(50) then update(20) then update(30) moves the bar to 50%, 70%, and 100% respectively, which is useful for simulating steps like file downloads. Anyone tracking multi-step processes in Python can browse more tqdm usage patterns on daily.dev."}},{"@type":"Question","name":"What does the leave argument do in tqdm and how do I hide a finished progress bar?","acceptedAnswer":{"@type":"Answer","text":"Setting leave=False in a tqdm object removes the progress bar from the screen once it reaches 100%, while leave=True (the default) keeps it displayed after completion. This is useful when you want a clean terminal output, such as printing a completion message without a leftover bar. Developers polishing terminal output can keep exploring Python library tips on daily.dev."}}]}
```

