pipx icon indicating copy to clipboard operation
pipx copied to clipboard

Add pip-search as pipx search

Open LeSnake04 opened this issue 4 years ago • 6 comments

How would this feature be useful? searching through the web browser is really annoying so I think a search command.

Describe the solution you'd like https://pypi.org/project/pip-search/ is a great way to search via terminal and doesnt have the api issue since it uses the website directly, so i would include it in pipx natively as pipx search

LeSnake04 avatar Jun 21 '21 10:06 LeSnake04

This doesn’t feel like a good fit to me. pipx is for running Python packages that are also “applications”, but pip-search (or anything that’s currently available really) does not have that characteristic. It would be very confusing to users when things show up in pipx search but can’t actually be installed by pipx.

uranusjr avatar Jun 22 '21 01:06 uranusjr

I like the idea. Is it possible to add filters to the search such that only packages with console scripts are returned in the results?

cs01 avatar Jun 22 '21 04:06 cs01

@cs01If the online search allows it, it should be possible through a simple code modification

We can use all filters provided by the website

LeSnake04 avatar Jun 22 '21 07:06 LeSnake04

The environment filters should make this possible

LeSnake04 avatar Jun 22 '21 07:06 LeSnake04

I don’t think there is a trove classifier for console applications. The Environment :: Console one also applies to libraries that help implement console applications (e.g. click, rich), and those are not installable with pipx.

uranusjr avatar Jun 22 '21 12:06 uranusjr

maybe you can ask the people making the pypa search if they can implement an filter like this?

LeSnake04 avatar Jun 22 '21 16:06 LeSnake04