Make Your Terminal Beautiful with Python: ASCII Art & Fancy Progress Bars ✨🐍!!
Nishkarsh Pandey

Nishkarsh Pandey @nish2005karsh

About: Full-stack learner | Streamlit developer 🚀 Turning ideas into projects and projects into lessons. Always building. Always sharing.

Location:
Delhi,India
Joined:
Dec 11, 2024

Make Your Terminal Beautiful with Python: ASCII Art & Fancy Progress Bars ✨🐍!!

Publish Date: May 23
26 21

Want to level up your terminal output with cool animations, progress bars, and fancy ASCII art? This quick guide shows you how to combine three awesome Python libraries to do just that:

pyfiglet — for eye-catching ASCII text banners.
tqdm — for simple, elegant progress bars.
rich — for colorful, animated progress bars and spinners.

Why Care About Terminal Styling?

When building CLI tools or scripts, output styling helps:
Make the experience more engaging.
Provide clear feedback on progress.
Impress your friends 😄.

Code Example
Here’s a concise Python script that shows off each library’s strength:

import pyfiglet
from tqdm import tqdm
from rich.console import Console
from rich.progress import track
import time

# ---------- 1. ASCII Art ----------
ascii_banner = pyfiglet.figlet_format("Nishkarsh!")
print(ascii_banner)

# ---------- 2. TQDM Progress Bar ----------
print("\n[1] Loading with tqdm:")
for _ in tqdm(range(50), desc="Loading..."):
    time.sleep(0.02)

# ---------- 3. Rich Progress Bar ----------
console = Console()
print("\n[2] Fancy Progress with Rich:")
for step in track(range(10), description="Processing tasks..."):
    time.sleep(0.1)

# ---------- 4. Rich Spinner / Status ----------
print("\n[3] Animated Spinner with Rich:")
with console.status("[bold green]Finalizing magic..."):
    time.sleep(2)

console.print("\n[bold cyan]All done! Your terminal is now beautiful. 🌈[/bold cyan]")

Enter fullscreen mode Exit fullscreen mode

Output:

Terminal

What Happens Here?
pyfiglet creates a big ASCII banner for the text "Nishkarsh!" — perfect for logos or script headers.

tqdm shows a simple progress bar with a label "Loading..." that fills up as the loop runs.

rich’s track() gives a colorful, animated progress bar with the label "Processing tasks...".

rich also lets you create a spinner with a status message (Finalizing magic...) to show a task in progress.

Finally, it prints a colored success message with emoji to celebrate!

How to Run This
Install dependencies:

pip install pyfiglet tqdm rich

Enter fullscreen mode Exit fullscreen mode

Save the script as terminal_magic.py
Run:

python terminal_magic.py

Enter fullscreen mode Exit fullscreen mode

What Else Can You Do?

Combine rich’s tables, trees, and markdown for killer CLI apps.
Use pyfiglet for dynamic banners in your CLI projects.
Customize tqdm with colors, nested bars, and more.

Final Thoughts
Adding some style to your terminal output is easier than you think — and it makes your tools so much nicer to use. Give these libraries a try and watch your command line come alive!

Comments 21 total

  • Dotallio
    DotallioMay 23, 2025

    Love this! Using rich and tqdm honestly makes any CLI so much more fun to work with. Have you tried combining rich’s tables with pyfiglet headers for full-on dashboards?

    • Nishkarsh Pandey
      Nishkarsh PandeyMay 24, 2025

      Thanks so much! 🙌 I totally agree — rich and tqdm can really bring a CLI to life!
      And yes — using pyfiglet headers with rich tables is such a power combo! 🎨 It gives off those retro looking dashboard vibes in the terminal 😄
      I’ve been experimenting a bit with that setup actually — like displaying a pyfiglet banner as the section title, followed by a well-styled rich.table for stats or task lists. It's surprisingly satisfying to look at!
      Might even turn it into a mini dashboard project next. Have you built anything like that yet?

  • Nathan Tarbert
    Nathan TarbertMay 24, 2025

    pretty cool, i always tweak my scripts with stuff like this - you think nice visuals actually help you stay motivated during long runs or is it just for fun?

    • Nishkarsh Pandey
      Nishkarsh PandeyMay 24, 2025

      Thanks! Honestly, a bit of both. I’ve noticed that having fun visuals like ASCII art or animated progress bars makes long-running scripts feel more engaging. It’s like adding a little personality to the terminal. Sometimes it’s just aesthetic, but other times it genuinely helps break the monotony and keep me focused. Glad to hear you tweak your scripts too — it’s underrated fun!

  • nadeem zia
    nadeem ziaMay 24, 2025

    Interesting to read

  • SamuraiX[13~]
    SamuraiX[13~]May 27, 2025

    I knew about Rich but never saw tqdm, look really nice! thank you for showing the picture of them as well

    • Nishkarsh Pandey
      Nishkarsh PandeyMay 27, 2025

      Thanks a lot, SamuraiX! 😊
      Yeah, tqdm is such a hidden gem — pairs beautifully with rich for that aesthetic + functional combo. Glad the visuals helped! Let me know if you try something cool with them !!

      • SamuraiX[13~]
        SamuraiX[13~]May 27, 2025

        Oh sure would love to! but unfortunately SAT exam is getting too much close to me lol, I have less than 2 weeks till exam, would gladly write any project just for the sake of programming after my exam as I really miss programming

        • Nishkarsh Pandey
          Nishkarsh PandeyMay 27, 2025

          Totally get that, SamuraiX! Best of luck crushing your SAT — programming projects will be waiting for you after, and they’ll be even more fun with a fresh mind. You've got this! 💪
          By the way, what colleges are you aiming for or hoping to get into?

  • Pelo
    PeloMay 27, 2025

    That’s a great summary! You’ve highlighted some awesome ways to level up CLI apps with style and interactivity.

    • Nishkarsh Pandey
      Nishkarsh PandeyMay 27, 2025

      Thanks so much, Pelo! Glad you liked the summary — making CLI apps both powerful and visually appealing is definitely a game changer!

  • Melody Kelly. N
    Melody Kelly. NMay 28, 2025

    Cool

  • Melody Kelly. N
    Melody Kelly. NMay 28, 2025

    Looks good 🤝🎯

    • Nishkarsh Pandey
      Nishkarsh PandeyMay 28, 2025

      Thanks a ton, Melody! Really appreciate the support 🤝😄 More terminal fun on the way! 🚀🖥️

      • Melody Kelly. N
        Melody Kelly. NMay 30, 2025

        Really appreciate it. Thanks

        • Nishkarsh Pandey
          Nishkarsh PandeyMay 30, 2025

          Thanks so much, Melody! I really appreciate your support and enthusiasm. Looking forward to sharing more fun terminal projects together! 🙌🐍✨

  • AIQuant Labs
    AIQuant LabsMay 28, 2025

    Good job!

    • Nishkarsh Pandey
      Nishkarsh PandeyMay 28, 2025

      Thank you so much! Glad you liked it — more Python terminal magic coming soon! 🔥🐍

  • AIQuant Labs
    AIQuant LabsMay 28, 2025

    Its Awesome

Add comment