How do I download the entire pypi Python Package Index

≡放荡痞女 提交于 2020-01-29 14:33:14

问题


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.


回答1:


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).



来源:https://stackoverflow.com/questions/39537938/how-do-i-download-the-entire-pypi-python-package-index

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!