-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find a replacement for halo #1812
Comments
maybe https://pypi.org/project/yaspin/ ? |
Was cruising for issues with |
It looks like |
the STDOUT consideration is around things like: this is a nice set of requirements: pavdmyt/yaspin#31 (comment) and the associated issue is rather worrying for yaspin - it doesn't seem to be especially hardened/mature if this isn't addressed yet. totally open to other libraries, too. this was just the first one on google. also ok with doing it ourselves if the implementation is simple. |
Yeah, I read that issue too. At first I was thinking of just disabling the spinner if stdout is not a TTY, but now I see that you want the spinner on stderr while stdout safely goes through the pipe. Would it be too hacky to just patch |
import sys
from unittest.mock import patch
with patch("sys.stdout", sys.stderr):
with yaspin(text="spinning"): Something like this accomplishes the job if you're not writing to stdout within the context of the spinner. In the second instance of I've updated my branch with this patch applied to diffs are here: master...bpshaver:capa:chore/replace-halo-dependency |
we use the halo package to show a spinner during long running computations. unfortunately, the package hasn't been updated in a long time, and while this typically isn't an issue itself, it calls a deprecated API:
The text was updated successfully, but these errors were encountered: