Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.67 KB

README.md

File metadata and controls

47 lines (35 loc) · 1.67 KB

repoinfo

A simple CLI to retrieve various info (number of watchers, number of forks, and size) for GitHub repositories.

Usage

./repoinfo.py [-h] [-s FIELD] repositories [repositories ...]

Positional Arguments

argument description
repositories GitHub repos to get info for (in user/repo format)

Optional Arguments

short long description
-h --help show usage information
-s FIELD --sort FIELD sort output on FIELD, which may be: name, watchers, forks, or size

Example

$ ./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

Rate Limiting

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.