• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

nat/ghtop: See what's happening on GitHub in real time (also helpful if you ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

nat/ghtop

开源软件地址:

https://github.com/nat/ghtop

开源编程语言:

Python 97.5%

开源软件介绍:

ghtop

See what's happening on GitHub in real time (also helpful if you need to use up your API quota as quickly as possible).

ghtop provides a number of views of all current public activity from all users across the entire GitHub platform. (Note that GitHub delays all events by five minutes.)

Install

Either pip install ghtop or conda install -c fastai ghtop.

How to use

Run ghtop -h to view the help:

$ ghtop -h
usage: ghtop [-h] [--include_bots] [--types TYPES] [--pause PAUSE] [--filt {users,repo,org}] [--filtval FILTVAL] {tail,quad,users,simple}

positional arguments:
  {tail,quad,users,simple}  Operation mode to run

optional arguments:
  -h, --help                show this help message and exit
  --include_bots            Include bots (there's a lot of them!) (default: False)
  --types TYPES             Comma-separated types of event to include (e.g PushEvent) (default: )
  --pause PAUSE             Number of seconds to pause between requests to the GitHub api (default: 0.4)
  --filt {users,repo,org}   Filtering method
  --filtval FILTVAL         Value to filter by (for `repo` use format `owner/repo`)

There are 4 views you can choose: ghtop simple, ghtop tail, ghtop quad, or ghtop users. Each are shown and described below. All views have the following options:

  • --include_bots: By default events that appear to be from bots are excluded. Add this flag to include them
  • --types TYPES: Optional comma-separated list of event types to include (defaults to all types). For a full list of types, see the GitHub event types docs
  • --pause PAUSE: Number of seconds to pause between requests to the GitHub api (default: 0.4). It is helpful to adjust this number if you want to get events more or less frequently. For example, if you are filtering all events by an org, then you likely want to pause for a longer period of time than the default.
  • --filt and --filtval: Optionally filter events to just those from one of: user, repo, or org, depending on filt. filtval is the value to filter by. See the GitHub docs for details on the public event API calls used.

Important note: while running, ghtop will make about 5 API calls per second. GitHub has a quota of 5000 calls per hour. When there are 1000 calls left, ghtop will show a warning on every call.

ghtop simple

A simple dump to your console of all events as they happen.

ghtop tail

Like simple, but only includes releases, issues and PRs (open, close, and comment events). A summary of the frequency of different kind of events along with sparklines are shown at the top of the screen.

ghtop quad

The same information as tail, but in a split window showing separately PRs, issues, pushes, and releases.

ghtop users

A summary of activity for the most active current users.


Shared under the MIT license with by @nat




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap