GitHub Visualizer is a Python utility for exploring and visualizing activity in GitHub repositories.
- Repository Overview: List all repositories for a user with commit previews
- Contribution Graph: GitHub-style heatmap showing commit activity over time
- Smart Caching: Automatic caching with 2-hour expiration to minimize API calls
- Token Support: Optional GitHub personal access token for higher rate limits
- Python 3.6 or higher
- pip (Python package manager)
pip install git+https://github.com/masonlet/github-visualizer.gitRun the program without arguments and follow the prompts:
github-visualizerYou'll be prompted for:
- GitHub username: The user whose repositories you want to visualize
- Refresh cache: Whether to bypass cached data (y/n)
- Access token: Optional GitHub personal access token for higher rate limits
# Basic usage
github-visualizer masonlet
# With personal access token
github-visualizer masonlet --token ghp_xxxxx
# Refresh cached data
github-visualizer masonlet --refresh
# Show only last 26 weeks
github-visualizer masonlet --weeks 26
# Skip the contribution graph
github-visualizer masonlet --no-graph
# Skip the repository list
github-visualizer masonlet --no-list
# Combined options
github-visualizer masonlet --token ghp_xxxxx --refresh --weeks 26username- GitHub username to visualize (optional in interactive mode)--token,-t- GitHub personal access token for higher rate limits--refresh,-r- Refresh cached data--weeks,-w- Number of weeks to display in graph (default: 52)--no-graph- Skip contribution graph display--no-list- Skip repository list display
git clone https://github.com/masonlet/github-visualizer.git
cd github-visualizerpip install -e .# Run all tests
pytest
# Run specific test file
pytest tests/test_commit_api.py
# Run tests with flags
pytest -VMIT License — see LICENSE for details.