Search
 
SCRIPT & CODE EXAMPLE
 

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")
Comment

PREVIOUS NEXT
Code Example
Python :: python get github file content 
Python :: binary gap python 
Python :: django oauth toolkit permanent access token 
Python :: write pyspark dataframe to csv 
Python :: python string cut last n characters 
Python :: python mathematics 
Python :: python insert path 
Python :: import path in django 
Python :: python verificar se é numero 
Python :: remove part of string python 
Python :: python string find 
Python :: max of double array python 
Python :: tiff to jpg in python 
Python :: python tkinter label widget 
Python :: RGB To Hex Conversion python 
Python :: python opencv measure distance two shapes 
Python :: find next multiple of 5 python 
Python :: captions overlap in seaborn plot jupyter 
Python :: turtle with python 
Python :: pandas groupby and show specific column 
Python :: merge a list of dictionaries python 
Python :: python how to make a movement controler 
Python :: .split python 
Python :: how to declare a class in python 
Python :: dataframe fill nan with mode 
Python :: update python 3.9 
Python :: create tables with psycopg2 python 
Python :: django signals post_save not working 
Python :: pandas add thousands separator 
Python :: pandas loc for list 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =