GitHub Informer is a simple yet effective tool that retrieves public repository information for any GitHub user. It provides an easy-to-use interface to access repository data including metadata, statistics, and other relevant information from GitHub's REST API.
By using this software, you agree to the full disclaimer terms.
Summary: Software provided "AS IS" without warranty. You assume all risks.
Full legal disclaimer: See DISCLAIMER.md
- Fetch all public repositories for a specified GitHub user
- Access individual repository data by name
- Get total repository count for a user
- Retrieve complete repository dataset as a dictionary
- Handles API errors gracefully
- Supports up to 100 repositories per request
- Python 3.x
- Internet connection for GitHub API access
- Clone the repository or download the source code:
git clone https://github.com/yourusername/github-informer.git
cd github-informer- Ensure the package structure is correct:
github-informer/
├── githubinformer/
│ ├── __init__.py
│ └── github_informer.py
└── app.py
from githubinformer.github_informer import GitHubInformer
# Create an informer instance for a GitHub user
informer = GitHubInformer("aixandrolab")
# Get all repositories data
repos_data = informer.get_github_repos_data()
# Get repository count
count = informer.get_repositories_count()
print(f"Total repositories: {count}")
# Get specific repository data
repo = informer.get_repo_data("Hello-World")
print(repo)Run the main script:
python app.pyYou'll be prompted to enter a GitHub username:
GitHub Name: aixandrolab
The script will then display the repository data for the specified user.
__init__(user): Creates a new informer instance for the specified GitHub username
get_github_data(url): Class method that fetches and parses JSON data from a given URLget_repo_data(name): Returns data for a specific repository by nameget_github_repos_data(): Returns all repositories data as a dictionaryget_repositories_count(): Returns the total number of repositories
github_repos_api_url: Returns the GitHub API URL used for fetching repository data
The method get_repo_data(name) returns a dictionary containing all repository information from GitHub's API, including:
- Repository name and description
- Creation and update dates
- Star count, fork count, watchers
- Language information
- URL links (clone, HTML, API)
- And other metadata provided by GitHub
The get_github_data method includes exception handling that will:
- Print any errors that occur during API requests
- Return an empty list if the request fails
- Fetches maximum of 100 repositories per user (GitHub API pagination not implemented)
- Requires internet connection
- No authentication support (public data only)
- Rate limited by GitHub API (60 unauthenticated requests per hour)
Copyright (©) 2026, Alexander Suvorov. All right reserved.
Alexander Suvorov - GitHub