A command-line tool to fetch and display GitHub repository information including stars, forks, and open issues count.
- Fetch repository statistics from GitHub API
- Display stars, forks, and open issues count
- Show additional info like watchers, language, and description
- Support for both
owner/repoformat and full GitHub URLs - Clean and formatted output
- Python 3.6 or higher
- No external dependencies (uses only standard library)
python github_repo_info.py octocat/Hello-Worldpython github_repo_info.py https://github.com/octocat/Hello-WorldFetching info for octocat/Hello-World...
==================================================
Repository: octocat/Hello-World
==================================================
Description: My first repository on GitHub!
⭐ Stars: 2000
🍴 Forks: 1500
❗ Open Issues: 50
👁️ Watchers: 2000
📝 Language: Python
🔗 URL: https://github.com/octocat/Hello-World
==================================================
The tool handles various error scenarios:
- Invalid repository names
- Network connection issues
- Repository not found (404 errors)
- Invalid GitHub URLs
- Uses GitHub REST API v3
- Makes authenticated requests with User-Agent header
- Implements proper error handling for HTTP errors
- Timeout set to 10 seconds for API requests
Solves issue #1101: GitHub Repo Info CLI - Show stars, forks, and issues count of a GitHub repository.