Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Jacalz/ghdstats
Cli tool to fetch download statistics for GitHub repositories.
https://github.com/Jacalz/ghdstats
downloads github-statistics hacktoberfest
Last synced: about 2 months ago
JSON representation
Cli tool to fetch download statistics for GitHub repositories.
- Host: GitHub
- URL: https://github.com/Jacalz/ghdstats
- Owner: Jacalz
- License: bsd-3-clause
- Created: 2021-12-23T16:54:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-05T16:50:54.000Z (10 months ago)
- Last Synced: 2024-10-29T12:35:39.728Z (about 2 months ago)
- Topics: downloads, github-statistics, hacktoberfest
- Language: Go
- Homepage:
- Size: 38.1 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Ghdstats
Ghdstats is a simple, but very fast, tool to fetch download counts from GitHub releases.
You just give it a user, or a user and repository, and it fetches all the necessary details for you.## Installation
The cli command can be downloaded by running the following command (using Go 1.16 or above):
```
$ go install github.com/Jacalz/ghdstats@latest
```## Usage
The general usage of the program works like this:
```
$ ghdstats [user] [repository, optional]
```As an example, you can get all the data for [jacalz/rymdport](https://github.com/jacalz/rymdport):
```
$ ghdstats jacalz rymdport
```The same command can also be written as this:
```
$ ghdstats jacalz/rymdport
```The tool can also fetch all downloads for a given user or organization:
```
$ ghdstats jacalz
```## Performance
The goal here is to be as fast as possible but still keeping very readable code.
All repositories for a user are downloaded and processed concurrently for better performance on multicore systems.## Inspiration and resoning
A lot of the inspiration for this came from https://github.com/mmilidoni/github-downloads-count.
The idea was to create a faster tool without any need for Python. The plan is to have binaries for as
many 64-bit platforms as possible.