What Reqs Scanner
Python utility that scans a repo base for requirements.txt to analyse most used packages and suggest base env
About This Project
What-Reqs-Scanner is a Python command-line tool for analyzing Python package dependencies across multiple repositories. It recursively locates requirements.txt files within a specified repository directory, normalizes package names, and records version specifications. The results are compiled into several reports, including alphabetically sorted unique package lists, frequency rankings with all observed versions, and frequency rankings of individual package and version specifications.
The tool is designed to inform decisions about shared or reusable Python environments. Its optional AI analysis mode sends frequency data to Anthropic's Claude or OpenAI's GPT-4, which proposes two to five reusable environments with names, package lists, and descriptions. Configuration is handled through a .env file for the repository base path and API keys, and the project is installed and managed with uv. Output is written to a configurable analysis directory.
The project is useful for developers or teams maintaining many Python projects who want to reduce duplicated dependency setup and identify commonly shared packages. It may also suit those interested in auditing version consistency across a set of repositories.