{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# ghtop\n", "\n", "> See what's happening on GitHub in real time (also helpful if you need to use up your API quota as quickly as possible)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`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.)\n", "\n", "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Install" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Either `pip install ghtop` or `conda install -c fastai ghtop`." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## How to use" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Run `ghtop -h` to view the help:\n", "\n", "```bash\n", "$ ghtop -h\n", "usage: ghtop [-h] [--include_bots] [--types TYPES] [--filt {user,repo,org}] [--filtval FILTVAL]\n", " {tail,quad,users,simple}\n", "\n", "positional arguments:\n", " {tail,quad,users,simple} Operation mode to run\n", "\n", "optional arguments:\n", " -h, --help show this help message and exit\n", " --include_bots Include bots (there is a lot of them!) (default: False)\n", " --types TYPES Comma-separated types of event to include (e.g PushEvent)\n", " --filt {user,repo,org} Filtering method\n", " --filtval FILTVAL Value to filter by (for `repo` use format `owner/repo`)\n", "```\n", "\n", "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", "\n", "- `--include_bots`: By default events that appear to be from bots are excluded. Add this flag to include them\n", "- `--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", "- `--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", "\n", "**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." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### ghtop simple" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "A simple dump to your console of all events as they happen.\n", "\n", "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### ghtop tail" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "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", "\n", "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### ghtop quad" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "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", "\n", "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### ghtop users" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "A summary of activity for the most active current users.\n", "\n", "\n", "\n", "----" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Shared under the MIT license with ♥ by @nat" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" } }, "nbformat": 4, "nbformat_minor": 2 }