A simple CLI to retrieve various info (number of watchers, number of forks, and size) for GitHub repositories.
./repoinfo.py [-h] [-s FIELD] repositories [repositories ...]
argument | description |
---|---|
repositories |
GitHub repos to get info for (in user/repo format) |
short | long | description |
---|---|---|
-h |
--help |
show usage information |
-s FIELD |
--sort FIELD |
sort output on FIELD, which may be: name, watchers, forks, or size |
$ ./repoinfo.py \
sindresorhus/awesome \
vinta/awesome-python \
timofurrer/awesome-asyncio \
herrjemand/awesome-webauthn
NAME WATCHERS FORKS SIZE
sindresorhus/awesome 156425 20318 1271
vinta/awesome-python 95518 18667 6596
timofurrer/awesome-asyncio 2918 228 116
herrjemand/awesome-webauthn 393 49 152
The GitHub API imposes strict
rate limiting
for unauthenticated requests. For increased limits, provide an
OAuth2 key/secret
in the GH_CLIENT_ID
and GH_CLIENT_SECRET
environment variables when running repoinfo
.