Pip regular expression search

后端 未结 3 440
情书的邮戳
情书的邮戳 2020-12-20 14:00

I need to find all packages on PyPI that match a particular regular expression:

^django-.*?admin.*$

Basically, the package nam

3条回答
  •  北海茫月
    2020-12-20 14:33

    One approach is the above mentioned method that pipes the pip search results to grep. I recommend to use this if you want to use regex search once or rarely.

    However if you need this feature regularly you should check out yip which is a package I wrote to accomplish regex search alongside other useful additions that pip's search can't do like displaying extra info(size, upload time, homepage or license) or colorizing the output for readability.

提交回复
热议问题