Skip to content

Wait Indicator

The Indicator class provides a simple way to add wait indicator animations to terminal output for long-running operations.

Introduced in FalconPy v1.5.1.

StylePreviewDescription
moon🌕🌖🌗🌘🌑🌒🌓🌔Moon phase cycle (default)
clock🕛🕐🕑🕒🕓🕔🕧🕖🕗🕘🕙🕚Rotating clock faces
thinking🤔🤔🤔🤔🤔          Thinking face with slow blink
cylonooooooooOooooooooOooooooooOooooooooOooooooooOooooooooOooooooooOooooooooOooooooooBright scan through dim field
kitt········o·······Oo······oOo······oOo······oOo······oOo······oOo······oOo······oO·······o········Comet sweep with trail
PropertyData TypeMutableDescription
indicatorList of stringsNoCurrent indicator frames.
positionIntegerYesCurrent position within the indicator list.

The default indicator is moon. Change it using the style keyword argument.

from time import sleep
from falconpy import Indicator
wait = Indicator()
for x in range(0, 30):
print(f" {wait}", end="\r")
sleep(.25)
from time import sleep
from falconpy import Indicator
wait = Indicator(style="clock")
for x in range(0, 30):
print(f" {wait}", end="\r")
sleep(.25)