Terminal-based GitHub profile viewer
Project description
GitHubFetch
A terminal-based GitHub profile viewer written in Python. View GitHub profiles right in your terminal with style!
About
GitHubFetch is a command-line tool that displays GitHub user profiles in a terminal with a nice layout inspired by system fetch tools like neofetch and fastfetch.
Features
- 🖼️ Shows user's avatar in the terminal (using imgcat)
- 👤 Displays basic profile information (bio, location, follower count, etc.)
- 🔗 Creates clickable links to profiles and websites
- ⭐ Shows starred repositories count
- 📌 Lists pinned repositories with stars and forks
- 🎨 Uses color-coding to make information easier to read
- 📏 Automatically adjusts to your terminal size
Installation
Option 1: Install from PyPI (Recommended)
The easiest way to install GitHubFetch is directly from PyPI:
pip install githubfetch
This will install the githubfetch command and all its dependencies.
Option 2: Install from Source
If you prefer to install from source:
-
Clone the repository:
git clone https://github.com/shubhpsd/githubfetch.git cd githubfetch
-
Install the package in development mode:
pip install -e .
Note: The script will automatically check for and offer to install the imgcat dependency on first run if it's missing.
Usage
# View a GitHub profile
githubfetch <username>
# Configure GitHub token
githubfetch --config
# Reset GitHub token
githubfetch --reset-token
# Display help
githubfetch --help
For example:
githubfetch shubhpsd
GitHub Token Setup
To view pinned repositories and avoid API rate limits, GitHubFetch needs a GitHub personal access token.
The first time you run the tool, it will guide you through setting up your token:
- It will prompt you to create a token at GitHub Developer Settings
- After entering your token, it's securely saved for future use
- Your token is stored securely in
~/.config/githubfetch/token.json
If you need to update or reconfigure your token later:
githubfetch --config
Your token needs only the read:user scope to work properly.
Requirements
- Python 3.6 or later
- A terminal that supports ANSI escape codes
- For image support: iTerm2 or a terminal that supports the imgcat protocol
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file githubfetch-1.0.3.tar.gz.
File metadata
- Download URL: githubfetch-1.0.3.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
463943196ab5ba8c2dced03ebcb58373a10d9d2120f25c672c0f2724cc71b34c
|
|
| MD5 |
726ec3994bacb1769ce07c8a85697ee7
|
|
| BLAKE2b-256 |
5a2b888f74ed25c0e7cfdc33012b42a211fca9eac23c5b8c0a5b7bcb7f08cb72
|
File details
Details for the file githubfetch-1.0.3-py3-none-any.whl.
File metadata
- Download URL: githubfetch-1.0.3-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36f78d9c12a2f8798092b22525e2149489962aad1d0b2c5f8c2abe4f832316cc
|
|
| MD5 |
e8260f415a76b7942cdf0602114eab82
|
|
| BLAKE2b-256 |
f3530c45404f18339816adcbb2914988870306b64fc96dbb021b7b85c6fa724c
|