This content originally appeared on DEV Community and was authored by Nishkarsh Pandey
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]")
Output:
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
Save the script as terminal_magic.py
Run:
python terminal_magic.py
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!
This content originally appeared on DEV Community and was authored by Nishkarsh Pandey

Nishkarsh Pandey | Sciencx (2025-05-23T17:35:44+00:00) Make Your Terminal Beautiful with Python: ASCII Art & Fancy Progress Bars ✨🐍!!. Retrieved from https://www.scien.cx/2025/05/23/make-your-terminal-beautiful-with-python-ascii-art-fancy-progress-bars-%e2%9c%a8%f0%9f%90%8d/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.