https://github.com/fresh-milkshake/github-metrics
A Python script to analyze download statistics
https://github.com/fresh-milkshake/github-metrics
github-api github-releases
Last synced: 5 days ago
JSON representation
A Python script to analyze download statistics
- Host: GitHub
- URL: https://github.com/fresh-milkshake/github-metrics
- Owner: fresh-milkshake
- Created: 2025-08-03T00:23:17.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-03T00:26:01.000Z (10 months ago)
- Last Synced: 2025-08-03T02:28:37.191Z (10 months ago)
- Topics: github-api, github-releases
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Releases Metrics


A Python script to analyze download statistics for all releases across all repositories of a GitHub user.
## Installation
1. Install dependencies:
```bash
pip install -r requirements.txt
```
2. Fill in the `.env` file with your GitHub token:
```bash
GITHUB_TOKEN=your_github_token
```
> [!TIP]
> You can get your GitHub token from [here](https://github.com/settings/tokens). You need to create a token with the `public_repo` scope.
## Usage
```bash
python github-metrics.py
```
## Output
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.