Skip to content

Add support for forcing rich's progress bar formatting (for use in subprocesses) #11171

@joeyballentine

Description

@joeyballentine

What's the problem this feature will solve?

Currently, when using pip In a subprocess, the rich progressbar will not work the same as it would in a normal terminal. This makes it impossible to parse install progress from pip's output.

Describe the solution you'd like

There are a few ways to solve this problem. I raised an issue in rich's repo, and they said the way to force progress bars in subprocesses is to simply add force_terminal=True in the progressbar options. It would be great if this could either be added by default or allowed to be toggled with a flag.

Alternative Solutions

Alternatively, a flag to allow some sort of verbose download/install progress logging for easy parsing would be great.

Additional context

Textualize/rich#2326

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions