Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to download source distribution from pypi using pip?

I am creating a tool that analyzes a set of python package’s source distributions. I am wondering if it is possible to use pip (or any other module) to download the source distribution tarball without installing or building it. I am going to process a lot of source distributions making manually downloading them individually from pypi.org a very tedious solution. Essentially I want something like:

>pip download_sdist foo
Successfully downloaded foo-1.2.3.tar.gz

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Try this:

pip3 download --no-deps --no-binary :all: {MODULE_HERE}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading