_images/halo.png

halo

Travis CI Build Status AppVeyor Build status Coveralls Status PyPI awesome

Beautiful spinners for terminal, IPython and Jupyter

_images/doge_spin.svg

Install

pip install halo

Usage

from halo import Halo

spinner = Halo(text='Loading', spinner='dots')
spinner.start()

# Run time consuming work here
# You can also change properties for spinner as and when you want

spinner.stop()

Alternatively, you can use halo with Python’s with statement:

from halo import Halo

with Halo(text='Loading', spinner='dots'):
        # Run time consuming work here

Finally, you can use halo as a decorator:

from halo import Halo

@Halo(text='Loading', spinner='dots')
def long_running_function():
        # Run time consuming work here
        pass

long_running_function()

Like it?

🌟 this repo to show support. Let me know you liked it on Twitter. Also, share the project.