PyPi上缺失模块的总下载量

2024-05-23 20:59:14 发布

您现在位置:Python中文网/ 问答频道 /正文

直到最近,还可以看到索引在https://pypi.python.org/pypi上的python模块被下载了多少次(每个模块都列出了过去24小时、每周和每月的下载量)。现在这些信息似乎不见了。在

在评估是否从一个模块或另一个模块构建代码时,下载数字是非常有用的信息。它们似乎也被https://img.shields.io/等站点引用

有人知道发生了什么吗?和/或,我可以在哪里查看/检索这些信息?在


Tags: 模块代码httpsioorgpypi信息img
3条回答

不知道发生了什么(尽管是happened beforei.e.),但是您可能不想尝试PyPI ranking,或者其他可用的模块和方法。例如:

但考虑到很多下载可能是镜像,而不一定是“真正的”用户下载。你在评估时应该考虑到这一点。libs邮件列表(或其他首选媒体)可能是知道应该安装哪个版本的更好方法。在

正如dmand发布的那样,PYPI count暂时被禁用,但是有些站点可能会告诉您python包的统计信息,比如pypi-stats.com(他们说它显示实时信息)pypi-ranking.info(这可能不会提供实时信息)。在

您还可以找到一些pypi包,这些包可以提供下载信息。在

这来自Donald Stufft(PyPI Maintener)的email来自distutils邮件列表:

Just an FYI, I've disabled download counts on PyPI for the time being. The statistics stack is broken and needs engineering effort to fix it back up to deal with changes to PyPI. It was suggested that hiding the counts would help prevent user confusion when they see things like "downloaded 0 times" making people believe that a library has no users, even if it is a significantly downloaded library.

I'm unlikely to get around to fixing the current stack since, as part of Warehouse, I'm working on a new statistics stack which is much better. The data collection and storage parts of that stack are already done and I just need to get querying done (made more difficult by the fact that the new system queries can take 10+ seconds to complete, but can be queried on any dimension) and a tool to process the historical data and put it into the new storage engine.

Anyways, this is just to let folks know that this isn't a permanent loss of the feature and we won't lose any data.

所以我想我们必须等待PyPI中新的stats堆栈。在

相关问题 更多 >