Skip to content

Commit 96b6c83

Browse files
committed
index
1 parent c1b0191 commit 96b6c83

File tree

3 files changed

+89
-16
lines changed

3 files changed

+89
-16
lines changed

‎README.md‎

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,53 @@ Either `pip install ghtop` or `conda install -c fastai ghtop`.
1212

1313
## How to use
1414

15-
Run `ghtop -h` to view the help. There are 4 views you can choose:
15+
Run `ghtop -h` to view the help:
1616

17-
### `ghtop simple`
17+
```bash
18+
$ ghtop -h
19+
usage: ghtop [-h] [--include_bots] [--types TYPES] [--filt {user,repo,org}] [--filtval FILTVAL]
20+
{tail,quad,users,simple}
21+
22+
positional arguments:
23+
{tail,quad,users,simple} Operation mode to run
24+
25+
optional arguments:
26+
-h, --help show this help message and exit
27+
--include_bots Include bots (there is a lot of them!) (default: False)
28+
--types TYPES Comma-separated types of event to include (e.g PushEvent)
29+
--filt {user,repo,org} Filtering method
30+
--filtval FILTVAL Value to filter by (for `repo` use format `owner/repo`)
31+
```
32+
33+
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:
34+
35+
- `--include_bots`: By default events that appear to be from bots are excluded. Add this flag to include them
36+
- `--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](https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/github-event-types)
37+
- `--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](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity#list-public-events) for details on the public event API calls used.
38+
39+
**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.
40+
41+
### ghtop simple
1842

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

2145
<img src="https://user-images.githubusercontent.com/346999/101861674-79e7df80-3b25-11eb-92d3-f888843f4aa2.png" width="500" style="max-width: 500px">
2246

23-
### `ghtop tail`
47+
### ghtop tail
2448

2549
Like `simple`, but removes most bots, and only includes releases, issues and PRs (open, close, and comment events). A summary of the frequency of push events is also shown at the bottom of the screen.
2650

2751
<img src="https://user-images.githubusercontent.com/346999/101861658-69376980-3b25-11eb-96ef-9d68f075abf7.png" width="700" style="max-width: 700px">
2852

29-
### `ghtop quad`
53+
### ghtop quad
3054

3155
The same information as `tail`, but in a split window showing separately PRs, issues, pushes, and releases. This view does not remove bot activity.
3256

3357
<img src="https://user-images.githubusercontent.com/346999/101861560-2ecdcc80-3b25-11eb-9fba-25382b2df65f.png" width="900" style="max-width: 900px">
3458

35-
### `ghtop users`
59+
### ghtop users
3660

37-
A summary of activity for the most active current users, including bots.
61+
A summary of activity for the most active current users.
3862

3963
<img src="https://user-images.githubusercontent.com/346999/101861612-4b6a0480-3b25-11eb-8124-19bb2434c27e.png" width="500" style="max-width: 500px">
4064

‎nbs/index.ipynb‎

Lines changed: 58 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,44 @@
4343
"cell_type": "markdown",
4444
"metadata": {},
4545
"source": [
46-
"Run `ghtop -h` to view the help. There are 4 views you can choose:\n",
46+
"Run `ghtop -h` to view the help:\n",
4747
"\n",
48-
"### `ghtop simple`\n",
48+
"```bash\n",
49+
"$ ghtop -h\n",
50+
"usage: ghtop [-h] [--include_bots] [--types TYPES] [--filt {user,repo,org}] [--filtval FILTVAL]\n",
51+
" {tail,quad,users,simple}\n",
4952
"\n",
53+
"positional arguments:\n",
54+
" {tail,quad,users,simple} Operation mode to run\n",
55+
"\n",
56+
"optional arguments:\n",
57+
" -h, --help show this help message and exit\n",
58+
" --include_bots Include bots (there is a lot of them!) (default: False)\n",
59+
" --types TYPES Comma-separated types of event to include (e.g PushEvent)\n",
60+
" --filt {user,repo,org} Filtering method\n",
61+
" --filtval FILTVAL Value to filter by (for `repo` use format `owner/repo`)\n",
62+
"```\n",
63+
"\n",
64+
"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:\n",
65+
"\n",
66+
"- `--include_bots`: By default events that appear to be from bots are excluded. Add this flag to include them\n",
67+
"- `--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](https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/github-event-types)\n",
68+
"- `--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](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity#list-public-events) for details on the public event API calls used.\n",
69+
"\n",
70+
"**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."
71+
]
72+
},
73+
{
74+
"cell_type": "markdown",
75+
"metadata": {},
76+
"source": [
77+
"### ghtop simple"
78+
]
79+
},
80+
{
81+
"cell_type": "markdown",
82+
"metadata": {},
83+
"source": [
5084
"A simple dump to your console of all events as they happen.\n",
5185
"\n",
5286
"<img src=\"https://user-images.githubusercontent.com/346999/101861674-79e7df80-3b25-11eb-92d3-f888843f4aa2.png\" width=\"500\" align=\"left\">"
@@ -56,8 +90,13 @@
5690
"cell_type": "markdown",
5791
"metadata": {},
5892
"source": [
59-
"### `ghtop tail`\n",
60-
"\n",
93+
"### ghtop tail"
94+
]
95+
},
96+
{
97+
"cell_type": "markdown",
98+
"metadata": {},
99+
"source": [
61100
"Like `simple`, but removes most bots, and only includes releases, issues and PRs (open, close, and comment events). A summary of the frequency of push events is also shown at the bottom of the screen.\n",
62101
"\n",
63102
"<img src=\"https://user-images.githubusercontent.com/346999/101861658-69376980-3b25-11eb-96ef-9d68f075abf7.png\" width=\"700\" align=\"left\">"
@@ -67,8 +106,13 @@
67106
"cell_type": "markdown",
68107
"metadata": {},
69108
"source": [
70-
"### `ghtop quad`\n",
71-
"\n",
109+
"### ghtop quad"
110+
]
111+
},
112+
{
113+
"cell_type": "markdown",
114+
"metadata": {},
115+
"source": [
72116
"The same information as `tail`, but in a split window showing separately PRs, issues, pushes, and releases. This view does not remove bot activity.\n",
73117
"\n",
74118
"<img src=\"https://user-images.githubusercontent.com/346999/101861560-2ecdcc80-3b25-11eb-9fba-25382b2df65f.png\" width=\"900\" align=\"left\">"
@@ -78,9 +122,14 @@
78122
"cell_type": "markdown",
79123
"metadata": {},
80124
"source": [
81-
"### `ghtop users`\n",
82-
"\n",
83-
"A summary of activity for the most active current users, including bots.\n",
125+
"### ghtop users"
126+
]
127+
},
128+
{
129+
"cell_type": "markdown",
130+
"metadata": {},
131+
"source": [
132+
"A summary of activity for the most active current users.\n",
84133
"\n",
85134
"<img src=\"https://user-images.githubusercontent.com/346999/101861612-4b6a0480-3b25-11eb-8124-19bb2434c27e.png\" width=\"500\" align=\"left\">\n",
86135
"\n",

‎settings.ini‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ audience = Developers
1212
language = English
1313
license = apache2
1414
status = 2
15-
requirements = emoji enlighten py-dashing fastcore ghapi>0.1.7
15+
requirements = emoji enlighten py-dashing fastcore ghapi>0.1.9
1616
console_scripts = ghtop=ghtop.ghtop:main
1717
branch = master
1818
custom_sidebar = False

0 commit comments

Comments
 (0)