github版本下载计数和其他统计数据。
ghstats的Python项目详细描述
说明
- python脚本获取github版本下载计数和其他统计信息。
- 可以用作独立脚本和python模块。
- 支持开箱即用的Python2和3。
用法
ghstats [user] [repo] [tag] [options] ghstats [user/repo] [tag] [options]
- 参数:
Argument | Description |
---|---|
^{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. |
- 选项:
Option | Description |
---|---|
^{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 Variable | Description |
---|---|
^{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.