为什么 PyPi 不再显示下载统计信息? [英] Why PyPi doesn't show download stats anymore?

查看:75
本文介绍了为什么 PyPi 不再显示下载统计信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

了解该软件包是否流行非常方便(即使它的流行是另一个流行软件包中某些导入"案例的原因).但现在由于某种原因我看不到这些信息.

示例:https://pypi.python.org/pypi/blist

他们为什么关闭这个有用的东西?

解决方案

可以在 这篇 mail.python.org 文章,下载统计数据已被删除,因为它们没有更新,而且很难修复.

文章作者Donald Stufft列出了以下原因:

<块引用>

删除/弃用它们的原因有很多,其中一些是:

  • 技术上很难使用新的 CDN
    • CDN 正在捐赠给 PSF,捐赠层不提供任何形式的日志访问
    • 无法访问日志的解决方法将大大降低 CDN 的效用
  • 极不准确
    • 有很多因素可以防止下载计数不准确,其中包括:
      • pip 下载缓存
      • 内部或非官方镜像
      • 未托管在 PyPI 上的包(为了比较)
      • 镜像或非官方抓取脚本导致计数过高(上次我查看了 25% 的下载量来自已知镜像脚本).
  • 不是特别有用
    • 仅仅因为一个项目被下载了很多并不意味着它是好的
    • 同样,一个项目没有被大量下载并不意味着它很糟糕

It was so handy to get an idea if the package is popular or not (even if its popularity is the reason of some "import" case in another popular package). But now I don't see this info for some reason.

An example: https://pypi.python.org/pypi/blist

Why did they turn off this useful thing?

解决方案

As can be seen in this mail.python.org article, download stats were removed because they weren't updating and would be too difficult to fix.

Donald Stufft, the author of the article, listed these reasons:

There are numerous reasons for their removal/deprecation some of which are:

  • Technically hard to make work with the new CDN
    • The CDN is being donated to the PSF, and the donated tier does not offer any form of log access
    • The work around for not having log access would greatly reduce the utility of the CDN
  • Highly inaccurate
    • A number of things prevent the download counts from being inaccurate, some of which include:
      • pip download cache
      • Internal or unofficial mirrors
      • Packages not hosted on PyPI (for comparisons sake)
      • Mirrors or unofficial grab scripts causing inflated counts (Last I looked 25% of the downloads were from a known mirroring script).
  • Not particularly useful
    • Just because a project has been downloaded a lot doesn't mean it's good
    • Similarly just because a project hasn't been downloaded a lot doesn't mean it's bad

这篇关于为什么 PyPi 不再显示下载统计信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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