manrajgrover / halo

💫 Beautiful spinners for terminal, IPython and Jupyter
MIT License
2.89k stars 147 forks source link

{Issue #47} Synchronous spinner #132

Closed foster999 closed 3 years ago

foster999 commented 4 years ago

Description of new feature, or changes

Added the ability to manually render single spinner steps, via:

Usage

with Halo(spinner='dots', manual_step=True) as spinner:
    for text in ["foo","bar"]*5:
        spinner.text = 'Loading {}'.format(text)
        spinner.step()
        do_something(text)

or

spinner = Halo(spinner="dots", manual_step=True)
spinner.start()
for text in ["foo", "bar"]*5:
    spinner.text=text
    spinner.step()
    do_something(text)
spinner.stop()

Checklist

Related Issues and Discussions

Fixes #47 (new feature)

People to notify

@steelman

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 420


Totals Coverage Status
Change from base Build 409: -1.01%
Covered Lines: 949
Relevant Lines: 1035

💛 - Coveralls