Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to show a progress spinner when python script is running

from yaspin import yaspin

with yaspin(text="Spinner!") as spinner:
    # Support all basic termcolor text colors
    colors = ("red", "green", "yellow", "blue", "magenta", "cyan", "white")

    for c in colors:
        spinner.color = c
        spinner.text = c
        time.sleep(0.5)

    spinner.ok("✅ Done")
 
PREVIOUS NEXT
Tagged: #show #progress #spinner #python #script #running
ADD COMMENT
Topic
Name
1+6 =