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
Add progress spinner animation during generation #2869
Conversation
This is a first step at enriching console output via the `rich` project.
Interesting small aesthetics improvement! 😊 My humble feedback: is it worth pulling all those extra dependencies? |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; I might've had the same comment as @Lucas-C re: whether it's worth pulling in dependencies, but I do like a good terminal spinner. 😄
It has a considerably smaller footprint than I anticipated. |
Is it worth it, just to get an animated spinner, as provided by this very naive implementation? Probably not. But as I mentioned above, I think we could expand our Rich usage to a degree that would, in aggregate, be worth the extra dependencies. Besides, I don't think the extra dependencies really cost us very much, and if we later decide they aren't worth it, we can easily remove them. I look forward to someone building on top of this effort to make the most of what Rich can offer us. ✨ |
In the wake of the log4j debacle, this is an interesting move :P |
If you are suggesting that dependencies can be an attack vector, well sure they can — that’s not saying very much.
Do I think Pelican users should be worried about Rich being such an attack vector? Nope.
|
I thought it would be nice to enhance Pelican's console output aesthetics via the Rich project, and adding an animated spinner during site generation is the most naive initial implementation I could conceive.
There are many other ways in which we could use Rich to enhance console output, including prettier text colors, nicer logging formatting, and more readable tracebacks.
I'd love to replace the
Generating...
spinner in this PR with per-task progress bars (generating, writing, etc.). If someone wants to submit a follow-up PR to implement that, I'd be most grateful! 🚀