Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 29, 2020. It is now read-only.

A Python util that retrieves a list of subscribers (watchers) for a given GitHub user and repo

License

Notifications You must be signed in to change notification settings

critical-path/py-subscribers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

31 Commits

Repository files navigation

Build Status Coverage Status

py-subscribers v1.0.0

py-subscribers is a util that retrieves a list of subscribers (watchers) for a given GitHub user and repo.

Dependencies

py-subscribers requires Python and the pip package. It also requires the following packages for usage and testing.

Usage:

  • click
  • requests

Testing:

  • coveralls
  • pylint
  • pytest
  • pytest-cov
  • radon
  • responses

Installing py-subscribers with test cases and testing dependencies

  1. Clone or download this repository.

  2. Using sudo, run pip with the install command and the --editable option.

sudo pip install --editable .[test]

Installing py-subscribers without test cases or testing dependencies

  1. Clone or download this repository.

  2. Using sudo, run pip with the install command.

sudo pip install .

Using py-subscribers with long options

To retrieve a list of subscribers for all repos associated with a given user, run subscribers with the --user option.

subscribers --user <user>

To retrieve a list of subscribers associated with a given user and a given repo, run subscribers with the --user and --repo options.

subscribers --user <user> --repo <repo>

To write the retrieved list of subscribers to disk, run subscribers with the --write option.

subscribers --user <user> --write
subscribers --user <user> --repo <repo> --write

Using py-subscribers with short options

To retrieve a list of subscribers for all repos associated with a given user, run subscribers with the -u option.

subscribers -u <user>

To retrieve a list of subscribers associated with a given user and a given repo, run subscribers with the -u and -r options.

subscribers -u <user> -r <repo>

To write the retrieved list of subscribers to disk, run subscribers with the -w option.

subscribers -u <user> -w
subscribers -u <user> -r <repo> -w

Testing py-subscribers after installation

  1. Run radon with the mi command and the --show option.
radon mi --show subscribers
  1. Run pylint.
pylint subscribers
  1. Run pytest with the -vv, --cov, and --cov-report options.
pytest -vv --cov --cov-report=term-missing

Note

py-subscribers makes unauthenticated requests to the GitHub API and is, therefore, subject to rate limits.

About

A Python util that retrieves a list of subscribers (watchers) for a given GitHub user and repo

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /