astropy:docs

Spinner

class astropy.utils.console.Spinner(msg, color=u'default', file=None, step=1, chars=None)[source] [edit on github]

Bases: object

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