Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pip cache info and pip cache list #1655

Open
hugovk opened this issue Feb 18, 2024 · 3 comments
Open

Add pip cache info and pip cache list #1655

hugovk opened this issue Feb 18, 2024 · 3 comments
Labels
cache Caching of packages and metadata enhancement New feature or improvement to existing functionality

Comments

@hugovk
Copy link

hugovk commented Feb 18, 2024

Follow on from #1646 (comment).

It would be useful to add something like pip cache info, because we will end up with large pip and uv caches on some systems:

pip cache info
Package index page cache location (pip v23.3+): /Users/hugo/Library/Caches/pip/http-v2
Package index page cache location (older pips): /Users/hugo/Library/Caches/pip/http
Package index page cache size: 187.6 MB
Number of HTTP files: 870
Locally built wheels location: /Users/hugo/Library/Caches/pip/wheels
Locally built wheels size: 5.9 MB
Number of locally built wheels: 10

Something like pip cache list could be useful too (it's normally much bigger than this, but I recently did pip cache clear!):

pip cache list
Cache contents:

 - MarkupSafe-2.1.5-cp313-cp313d-macosx_14_0_arm64.whl (15 kB)
 - cffi-1.16.0-cp38-cp38-macosx_11_0_universal2.whl (256 kB)
 - coverage-7.4.1-cp313-cp313d-macosx_14_0_arm64.whl (208 kB)
 - pillow-10.3.0.dev0-cp312-cp312-macosx_10_9_universal2.whl (888 kB)
 - pip-24.1.dev0-py3-none-any.whl (2.1 MB)
 - pip-24.1.dev0-py3-none-any.whl (2.1 MB)
 - scripttest-1.3-py3-none-any.whl (7.8 kB)
 - simple-1.0-py3-none-any.whl (1.1 kB)
 - simple2-3.0-py3-none-any.whl (1.1 kB)
 - tinytext-3.6.1.dev64-py3-none-any.whl (4.4 kB)
@zanieb zanieb added enhancement New feature or improvement to existing functionality cache Caching of packages and metadata labels Feb 18, 2024
@vbmade2000
Copy link

@zanieb I want to take a chance at this issue.

@zanieb
Copy link
Member

zanieb commented Sep 26, 2024

@vbmade2000 I'm not sure this is a good first issue as there's a fair amount of design work that needs to be done. You could start looking into it if you want and put forward a proposal, but just note that adding new commands is a big task with a lot of user-experience concerns.

@vbmade2000
Copy link

I see. I'll pick up later probably. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cache Caching of packages and metadata enhancement New feature or improvement to existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants