吉休布Stats Sparkline Cli
sparkler的Python项目详细描述
用于从github统计信息生成迷你图的命令行工具。
github有几个api用于在原始json中提取活动统计信息 格式。Sparkler是一个可以获取原始数据并生成sparkline的工具 显示一段时间内活动级别的图像。
Sparkler将为去年的提交活动创建一个Sparkine。
安装
Sparkler可与PIP一起安装:
$ pip install --user sparkler
使用
运行sparkler时需要两个输入,即您希望的GitHub repo 图形和保存图形的文件名。
注意
由于某些使用的库中存在一些兼容性问题,只有jpg 到目前为止,文件格式已经过测试。众所周知,巴布亚新几内亚存在问题
要获取kubernetes/kubernetes repo去年的提交活动,请使用 命令行:
sparkler kubernetes/kubernetes activity.jpg
其他选项可用于设置前景和背景 生成的图的颜色有关详细信息,请参阅帮助文本:
sparkler -h usage: sparkler [-h] [--version] [--background BACKGROUND] [--line LINE] repo outfile positional arguments: repo The GitHub org/repo to report on. outfile The file name for the generated image. Note: Due to current library issues, this must be a jpg. optional arguments: -h, --help show this help message and exit --version show program's version number and exit --background BACKGROUND The background color of the sparkline image. --line LINE The sparkline image line color.
请随意打开github问题或提出请求。