astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v0.3 »
- Astropy Core Package Utilities (`astropy.utils`) »
- Spinner

# Spinner

class `astropy.utils.console.``Spinner`(msg, color=u'default', file=None, step=1, chars=None)

  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()