github版本下载计数和其他统计数据。

ghstats的Python项目详细描述


Build StatusCode QualityCoverageVersionSupportLicense

说明

  • python脚本获取github版本下载计数和其他统计信息。
  • 可以用作独立脚本和python模块。
  • 支持开箱即用的Python2和3。

安装

您可以使用以下方法之一获得ghstats

用法

ghstats [user] [repo] [tag] [options]
ghstats [user/repo] [tag] [options]
  • 参数:
ArgumentDescription
^{tt3}$Repository owner. If not present, user will be prompted for input.
^{tt4}$Repository title. If not present, user will be prompted for input.
^{tt5}$Release tag name. If not present, prints the total number of downloads.
  • 选项:
OptionDescription
^{tt6}$, ^{tt7}$Print detailed statistics for release(s).
^{tt8}$, ^{tt9}$Print only resulting numbers and errors. Overrides ^{tt6}$ option.
^{tt11}$, ^{tt12}$Get stats for the latest release. ^{tt13}$ argument will be ignored.
^{tt14}$, ^{tt15}$Show help on script usage.
  • 环境变量:
Environment VariableDescription
^{tt16}$GitHub OAuth token. Use to increase API request limit.

示例

atom/atom存储库示例:

ghstats atom atom            # Fetch download count for all releases.
ghstats atom/atom            # Fetch download count for all releases (alt. syntax).
ghstats atom atom -q         # Quiet mode (print only numerical result).
ghstats atom atom -d         # Detailed description for every release.
ghstats atom atom -l         # Fetch download count for the latest release.
ghstats atom atom -l -d      # Detailed description for the latest release.
ghstats atom atom -l -q      # Quiet mode for the latest release.
ghstats atom atom v1.0.0     # Fetch download count for "v1.0.0" release.
ghstats atom atom v1.0.0 -d  # Detailed description for "v1.0.0" release.
ghstats atom atom v1.0.0 -q  # Quiet mode for "v1.0.0" release.
ghstats                      # Get input for username and repository from user.
ghstats -h                   # Print help.

更改日志

v1.2.0

  • 修复空发布标题(issue #5)上的错误。

v1.1.1

v1.1.0

  • 修复Unicode标题(issue #1)上的错误。
  • 修复草稿发布(issue #4)上的错误。

v1.0.1

v1.0.0

  • 初次发布。

许可证

mit许可证

您可以自由使用、修改、分发(包括商业用途) 只要你相信原作者并包括许可证文本。

许可证文本:MIT License

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
由于java的原因,maven无法运行代码。lang.NoClassDefFoundError:com/fasterxml/jackson/annotation/JsonMerge   Android项目中的java Creative SDK图像编辑器UI   java如何在Android Studio中使用DataOutputStream上传文件并将其他参数传递到web服务器   java倒计时服务打开时崩溃   java将RubyonRails项目转换为JRubyonRails项目   java我的图库意图是不显示图像?为什么?   java如何在春季启动时跳过mongodb/   java@Autowired在Spring中是如何实现的   甲骨文Akka java。util。同时发生的timeoutexception线程池频繁超时   java maven依赖项对spring启动应用程序有何影响?   java Firestore执行复合查询,未截获事件“已修改”   java ItemStreamException:未能初始化读取器,原因是:IllegalStateException:流已初始化。重新开放前关闭   java将空标记解组到集合的新实例中   使用AspectJ的java新手:无法调用aspect   java查找棋类游戏的所有组合   你为什么要这样做and==与Java中的equals方法不一样吗?   如何对使用JavaUUID的代码进行单元测试?