A Python CLI tool for analyzing GitHub repositories.
The project is being built as a learning project to practice Python, REST APIs, testing, and software architecture.
- Fetch GitHub repository information
- Display repository statistics
- Display the repository's primary language
- Analyze language composition
- Fetch the repository file tree
- Count files and directories
- Python 3.14+
- GitHub repository URL
Clone the repository and create a virtual environment:
python3 -m venv .venv
source .venv/bin/activateInstall the project and development dependencies:
python -m pip install -e ".[dev]"python src/github_analyzer/analyzer.py https://github.com/psf/requestspytestGitHubRepositoryAnalyzer/
├── src/
│ └── github_analyzer/
│ ├── __init__.py
│ └── analyzer.py
├── tests/
│ └── test_analyzer.py
├── .gitignore
├── pyproject.toml
└── README.md
- Analyze file types and source-code structure
- Identify test files
- Find the largest files
- Analyze repository activity
- Add GitHub API authentication
- Build a REST API with FastAPI
- Add a web frontend
- Store analysis results in PostgreSQL