Skip to content

Adopt rich, for handling terminal output #10461

Open
@pradyunsg

Description

Initial discussion at #10423

This is mostly an umbrella issue for tracking actually doing this, and for serving as a place for discussion whenever a downstream redistributor inevitably comes complaining about this. :)

The first step is obviously to vendor rich. Next, the most obvious change would be to use rich's output logging-related adapter, to replace as much of our custom output stuff with it as possible -- that'll allow using rich's nice markup in our output. At this point, we can close this issue.

The bulk of the benefits will come from further refactoring though:

  • replacing our spinners/progress bars with rich's spinners/progress bars.
  • replacing our user-input prompts with rich's prompts.
  • presenting tracebacks with rich's traceback highlighting.
  • utilising rich's status bar, to present proper status to the user.

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions