A simple command-line tool to display the latest public GitHub activity for any user, with emoji icons and color-coded output powered by rich.
- Fetches up to 20 recent public events for any GitHub user
- Displays activity with descriptive emoji icons per event type
- Color-highlighted output using
rich - Graceful error handling for network issues, timeouts, and HTTP errors
-
Clone or download this repository.
-
Install dependencies:
pip install requests rich
python script.py <github-username>Example:
python script.py torvaldsSample output:
Latest events for torvalds:
1. π pushed to torvalds/linux
2. π created issue #1234
3. π¬ commented on issue #1230
4. β starred git/git
| Icon | Event |
|---|---|
| π¬ | Issue comment |
| π | Push |
| π | Issue opened |
| β | Repository starred |
| π | Pull request |
| π | Pull request review |
| π¨οΈ | Pull request review comment |
| β¨ | Branch or tag created |
- Uses the GitHub Events API, which only returns public events.
- The API returns a maximum of 300 events and up to 90 days of history. This script fetches the most recent 20.
- No authentication is required, but unauthenticated requests are limited to 60 requests per hour by GitHub.
MIT