%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/doc/python3-rich/examples/
Upload File :
Create Path :
Current File : //usr/share/doc/python3-rich/examples/status.py

from time import sleep
from rich.console import Console

console = Console()
console.print()

tasks = [f"task {n}" for n in range(1, 11)]

with console.status("[bold green]Working on tasks...") as status:
    while tasks:
        task = tasks.pop(0)
        sleep(1)
        console.log(f"{task} complete")

Zerion Mini Shell 1.0