Skip to content
Advertisement

How do I download the entire pypi Python Package Index

I’m trying to find a way to download the entire PyPi index – and only the index – no code files. I’m wanting to analyze license types to be able to rule out libraries that have too restrictive license types. I’ve looked online and through the user’s guide, but if the answer is there, it eludes me.

Advertisement

Answer

Well, you can use PyPi’s Simple Index to get a simple list of packages without overhead. And then send a GET request to

https://pypi.python.org/pypi/<package-name>/json

This will return a JSON response containing all the metadata information regarding the package (including the license).

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement