Jak pokazać spinner postępu, gdy działa skrypt Pythona

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