py-limits is a command-line util that retrieves rate limits from GitHub.
py-limits requires Python and the pip package. It also requires the following packages for usage and testing.
Usage:
- click
- requests
Testing:
- coveralls
- flake8
- pytest
- pytest-cov
- radon
- responses
-
Clone or download this repository.
-
Using
sudo
, runpip
with theinstall
command and the--editable
option.
sudo pip install --editable .[test]
-
Clone or download this repository.
-
Using
sudo
, runpip
with theinstall
command.
sudo pip install .
Usage: limits [OPTIONS]
Command-line util that retrieves rate limits from GitHub.
Options:
--core / --no-core Core API
--search / --no-search Search API
--graphql / --no-graphql GraphQL API
--help Show this message and exit.
To display rate limits for GitHub's core API, run limits
with or without the --core
option.
limits
limits --core
To display rate limits for GitHub's search API, run limits
with the --search
option.
limits --search
To display rate limits for GitHub's GraphQL API, run limits
with the --graphql
option.
limits --graphql
To prevent the display of rate limits for the core API, use the --no-core
option.
limits --no-core --search
limits --no-core --graphql
limits --no-core --search --graphql
- Run
radon
with themi
command and the--show
option.
radon mi --show limits
- Run
flake8
with the--count
option.
flake8 --count limits
- Run
pytest
with the-vv
,--cov
, and--cov-report
options.
pytest -vv --cov --cov-report=term-missing
py-limits uses Coordinated Universal Time.