Spinner

class astropy.utils.console.Spinner(msg, color='default', file=<open file '<stdout>', mode 'w' at 0x7f42ba5531e0>, step=1, chars=None) [edit on github][source]

A class to display a spinner in the terminal.

It is designed to be used with the with statement:

with Spinner("Reticulating splines", "green") as s:
    for item in enumerate(items):
        s.next()

Page Contents