如何下载整个 pypi Python Package Index [英] How do I download the entire pypi Python Package Index

查看:39
本文介绍了如何下载整个 pypi Python Package Index的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到一种方法来下载整个 PyPi 索引 - 并且只有索引 - 没有代码文件.我想分析许可证类型以排除许可证类型过于严格的库.我已经在网上和用户指南中查看过,但如果答案在那里,我就想不通了.

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.

推荐答案

好吧,你可以使用 PyPi 的简单索引 获得一个简单的包列表而没有开销.然后发送一个GET请求到

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

这将返回一个 JSON 响应,其中包含有关包(包括许可证)的所有元数据信息.

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

这篇关于如何下载整个 pypi Python Package Index的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆