A Python script to analyze download statistics for all releases across all repositories of a GitHub user.
-
Install dependencies:
pip install -r requirements.txt
-
Fill in the
.envfile with your GitHub token:GITHUB_TOKEN=your_github_token
Tip
You can get your GitHub token from here. You need to create a token with the public_repo scope.
python github-metrics.py <username>The script summarizes overall statistics such as repositories with releases, total releases, releases with downloads, total files, and total downloads. For each repository, it shows detailed stats and a table of files with their release name, file name, download count, size, and type.