CLI Tools python Beginner

Rich Progress Bar Script

Display a beautiful progress bar in the terminal using Rich.

python
from rich.progress import track
from rich.console import Console
from time import sleep

console = Console()

def process_items(items):
    for item in track(items, description='Processing...'):
        sleep(0.1)
        console.log(f'Done: [green]{item}[/green]')

if __name__ == '__main__':
    process_items(range(20))

Prerequisites

  • rich >= 13
  • python >= 3.9

Pro Tips

  • → Use rich.table.Table for structured output.

Was this module useful?

Share your experience — it helps the team improve.

Leave Feedback

Commercial Licensing

Acquire a production access token or template license for enterprise deployment.

Module Info

Language
python
Level
Beginner
Read time
2 min
Published
Sep 2026
License
Commercial License

Newsletter

New modules every week, directly to your inbox.