GitHub Stargazers
List stargazers and check if a user starred that repository.
Install
It is recommended to be installed in a virtual environment with Python >= 3.6.
Install pipenv
$ pip3 install pipenv
After cd into a working directory, configure virtual environment and install github-stargazers
$ pipenv --python=python3.6 $ pipenv install github-stargazers
Usage
As a command-line app
$ pipenv run github-stargazers <username>/<repository> [OPTIONS]
where OPTIONS could be
--user <username> GitHub username to see if it is a stargazer.
If it’s used without --user, it just shows repository’s stargazers.
When it’s used with --user, it shows if that user starred the repository or not.
Example:
$ pipenv run github-stargazers marius92mc/github-stargazers --user marius92mc
As an imported
from github_stargazers.github import GitHub
github = GitHub("yasoob/fb-messenger-bot")
print(github.get_all_stargazers())
print(github.is_stargazer("Jazzthedog"))
Running from source
Requirements
Python 3.6
Getting started
Install pipenv
$ pip3 install pipenv
Set Python 3.6 as the version used by pipenv to create the virtual environment
$ cd github_stargazers $ pipenv --python=python3.6
Install dependencies
$ pipenv install --dev
Run
First we need to install the package, according to setup.py instructions.
$ pipenv run python setup.py install
Then we can run the installed package inside pipenv.
$ pipenv run github-stargazers <username>/<repository> [OPTIONS]
where OPTIONS could be
--user <username> GitHub username to see if it is a stargazer.
Run autopep8, mypy, pylint for the changed files
$ ./autopep8.sh $ ./mypy.sh $ ./pylint.sh
Launch IPython console
$ pipenv run ipython
Tests
Run the unit-tests.
$ pipenv run pytest
or with more detailed output, like this $ pipenv run pytest -vv.
Debug failing tests
$ pipenv run pytest -vv -s -x --pdb --showlocals
For more details, see the pytest documentation.
Metadata
Release files for github-stargazers 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| github-stargazers-0.1.0.tar.gz | 5.4 kB | Without provenance | Details for github-stargazers-0.1.0.tar.gz |
Release files / github-stargazers-0.1.0.tar.gz
| Download URL | github-stargazers-0.1.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bce1787c828ac3b2bf82592394531a88db7644e8f54ad1bd6f84aebeec47c10c
|
|
BLAKE2b-256 checksum How to use checksums |
5c4dfe35716049c2ef9d21f40434d5829299ee6a5dff97180e5dc8ac55e9aa4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for github-stargazers 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.