pip icon indicating copy to clipboard operation
pip copied to clipboard

Colourful pip help

Open hamdanal opened this issue 2 years ago • 6 comments

Resolves #12134.

I didn't get any feedback on the issue whether this is a welcome addition to pip so I created this PR to let you see what it would look like. Please let me know if I should pursue this further and add tests.

hamdanal avatar Jul 14 '23 15:07 hamdanal

Here are some screenshots

pip --help

pip-help

pip install --help

pip-install-help

hamdanal avatar Jul 14 '23 15:07 hamdanal

Nice! That looks more useful, and also makes the tool look like the authors paid attention to details.

jeffwidman avatar Aug 04 '23 17:08 jeffwidman

@hamdanal Thanks for filing this!

It looks quite nice ✨ -- this PR has been on my list of things to review in pip, but alas, I haven't found the time to come around to this yet!

I'd really like to get this (with maybe some stylistic tweaks) landed sooner rather than later in pip.[^1]

[^1]: Assuming no show-stopper bugs or concerns, obviously.

pradyunsg avatar Aug 04 '23 19:08 pradyunsg

I agree, I really like the look of this. Unfortunately, I don't have the time myself to review it, so I'll have to limit myself to being +1 on the PR in principle 🙂

pfmoore avatar Aug 04 '23 19:08 pfmoore

Thank you all. I am glad you are positive about this.

(with maybe some stylistic tweaks)

Of course. If you mean the output style, you can easily experiment with different styles. These are all defined here. If you mean the code style, we'll have to wait for the review :D.

Assuming no show-stopper bugs or concerns, obviously

I got a bug report recently about the colours not working properly in legacy windows console. I have a fix that I will include in this PR soon.

hamdanal avatar Aug 05 '23 12:08 hamdanal

See https://github.com/pypa/pip/pull/13649 for a followup.

hugovk avatar Nov 16 '25 07:11 hugovk