获取包状态并绘制它们的解决方案
pypi-stat的Python项目详细描述
所有文件都打开了 http://pypi-stat.readthedocs.org 当RTD不起作用的时候就回到这里 http://packages.python.org/pypi-stat/ 资料来源: http://github.com/jul/pypi-stat 门票 http://github.com/jul/pypi-stat/issues
获取统计信息
用法:
usage: pypi_get_stat.py [-h] [-q] [package_name [package_name ...]] Gathers download stats from pypi regarding the download information of the geiven package. Print them, and stores them in a file for further use. If no package name are provided, it will try to get all packages known from previously fetched stats. -q will print less output (only warnings and errors) positional arguments: package_name package name to be retrieved optional arguments: -h, --help show this help message and exit -q, --quiet less verbose output
图表统计
用法:
usage: pypi_graph_stat.py [options] options: -h, --help show this help message and exit -k KEY keys to plot in stored stats amongst av_dl, total_dl, min_dl','max_dl' -f _FROM, --from=_FROM min date from which to plot -t _TO, --to=_TO maximum date to which to plot -o _DEST, --output=_DEST filename of the output image. Don't create output directory if non existant. If this is enabled output in TK backend is desactivated. -p _PACKAGE, --package=_PACKAGE packages for wich to graph
您需要matplotlib和numpy来绘制图形。阅读文档(安装 部分)了解更多信息。
更改日志
- 反对Debian和我的打字错误 修复依赖关系。我真的很喜欢在测试机制之前安装失败 但如果没有人开罚单,我就无法知道它失败了。
1.3.0
- 使用https使pypi stat再次变得很棒,函数:)
1.3.1
- 从第一天起就完全忘记了射箭的要求
1.3.2
- 你每天都会学到:)我的安装要求过高