github-download-counts
Usage
usage: github_download_counts.py <arguments>
Display download statistics from GitHub repositories
* Access to the GitHub API is done using your personal access token (PAT).
See https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
for information about PATs.
options:
--verbose, -v Increase verbosity (e.g., -v, -vv, etc.)
-t <str>, --token <str>
GitHub API token
--token-file <str> GitHub API token (read from filename)
-r [REPOS ...], --repo [REPOS ...]
One or more GitHub repository/repositories (e.g., org/repo)
--date-from <str> Human readable date expression for beginning of search time frame (default: Jan 1 1970)
--date-to <str> Human readable date expression for ending of search time frame (default: now)
--release [RELEASEREGEXES ...]
List of regular expressions against which to match releases (e.g., ^v24\.10)
-a [ASSETREGEXES ...], --asset [ASSETREGEXES ...]
List of regular expressions against which to match release assets (e.g., ^\w+.+\.iso\.01$, ^foobar_.*\.tar\.gz$
-i [IMAGEREGEXES ...], --image [IMAGEREGEXES ...]
List of regular expressions against which to match container images (e.g., ^foobar/barbaz$)
--image-tag [IMAGETAGREGEXES ...]
List of regular expressions against which to match container image tags (e.g., ^24\.10)
Installation
Using pip, to install the latest release from PyPI:
python3 -m pip install -U github-download-counts
Or to install directly from GitHub:
python3 -m pip install -U 'git+https://github.com/mmguero/github-download-counts'
Prerequisites
github-download-counts requires:
- Python 3
- beautifulsoup4
- dateparser
- github3.py
- mmguero
Contributing
If you'd like to help improve github-download-counts, pull requests will be welcomed!
Authors
- Seth Grover - mmguero
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for github-download-counts 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| github_download_counts-1.1.2.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| github_download_counts-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / github_download_counts-1.1.2.tar.gz
| Download URL | github_download_counts-1.1.2.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d193ae52f20e7840b6ecf10969ce1aad9fcf8b1289d8f82dadcca37ba9b718da
|
|
BLAKE2b-256 checksum How to use checksums |
897af1f2f9889fdf3cbfbbc0d1019624db5e648d88ffbb7e68baf48cc54a21d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / github_download_counts-1.1.2-py3-none-any.whl
| Download URL | github_download_counts-1.1.2-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0619ece5c3ad598d29ea2b77bf1ff81db6d09e2c5037c494857696e3c99783e
|
|
BLAKE2b-256 checksum How to use checksums |
507de65e96483a143eb84193c5776674ff4ba5a50e192e5cc7792d6113bf2b9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|