Skip to main content

Terminal-based GitHub profile viewer

Project description

GitHubFetch

PyPI version

A terminal-based GitHub profile viewer written in Python. View GitHub profiles right in your terminal with style!

GitHubFetch Demo Screenshot

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
  • 📅 Displays a horizontal contribution heatmap to visualize activity patterns
  • 🎨 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:

  1. Clone the repository:

    git clone https://github.com/shubhpsd/githubfetch.git
    cd githubfetch
    
  2. 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>

# Display a user's contribution heatmap horizontally
githubfetch <username> --heatmap

# Configure GitHub token
githubfetch --config

# Reset GitHub token
githubfetch --reset-token

# Display help
githubfetch --help

For example:

# View a user's profile
githubfetch shubhpsd

# View a user's contribution heatmap
githubfetch shubhpsd --heatmap

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:

  1. It will prompt you to create a token at GitHub Developer Settings
  2. After entering your token, it's securely saved for future use
  3. 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 the read:user scope to work properly. For contribution heatmap functionality, the user scope is required.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

githubfetch-1.0.5.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

githubfetch-1.0.5-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file githubfetch-1.0.5.tar.gz.

File metadata

  • Download URL: githubfetch-1.0.5.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for githubfetch-1.0.5.tar.gz
Algorithm Hash digest
SHA256 a91e2053636ec4f89ad13cf41a4299a123472da8fc5e28eb5d6618ab4ef6089b
MD5 744d4ea6e97072e3d37d2252af73619b
BLAKE2b-256 57214bb892399b9595d9342649457e63fe7713884bc3656c7a3c5a01f735d9c3

See more details on using hashes here.

File details

Details for the file githubfetch-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: githubfetch-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for githubfetch-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6789dbeef7209b0974dacf4ccf629cee2e02c4e32e8651e6f4c983c4aae7a9fa
MD5 d699881d377200626f8456021362d10c
BLAKE2b-256 5f4c176ee9e67fc0dd18d94822f8e48acaaa9c37da47994d2cda427815c5893a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page