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
  • 🎨 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>

# 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:

  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 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


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.4.tar.gz (14.3 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.4-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: githubfetch-1.0.4.tar.gz
  • Upload date:
  • Size: 14.3 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.4.tar.gz
Algorithm Hash digest
SHA256 35fc8bf43d6ebaa428a0c92a4e1b237c5e8ffe1980c6d4d40fe02117e29e1b97
MD5 d800328e9104f618b99c041c0960273d
BLAKE2b-256 02377f982a78b68251d7af418dfd99ee805dc7133fd77a494f72d2562a343316

See more details on using hashes here.

File details

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

File metadata

  • Download URL: githubfetch-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd831aab09a050de0d3779e21dad5895b6d36662932e03942885d1fe501d35b5
MD5 c934c61832da47ea67058f5b4bd67f00
BLAKE2b-256 b348fe17f38758d8a0dc655b8962c1c61d86912e0d3aaf5d43a881fe46cfd68f

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