https://github.com/hanksudo/githubstars
List repository stars and info through Github v4 GraphQL API
https://github.com/hanksudo/githubstars
github githubstars graphql python stars
Last synced: 5 days ago
JSON representation
List repository stars and info through Github v4 GraphQL API
- Host: GitHub
- URL: https://github.com/hanksudo/githubstars
- Owner: hanksudo
- License: mit
- Created: 2017-09-19T08:41:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-09-14T11:08:57.000Z (over 3 years ago)
- Last Synced: 2024-08-09T11:15:11.127Z (over 1 year ago)
- Topics: github, githubstars, graphql, python, stars
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Github Stars
============
.. image:: https://img.shields.io/pypi/v/githubstars.svg
:target: https://pypi.python.org/pypi/githubstars
.. image:: https://img.shields.io/pypi/l/githubstars.svg
:target: https://pypi.python.org/pypi/githubstars
.. image:: https://img.shields.io/pypi/pyversions/githubstars.svg
:target: https://pypi.python.org/pypi/githubstars
List repository stars and info through Github v4 GraphQL API
.. code-block:: bash
$ githubstars --lang python
⭐ 38867 awesome-python
⭐ 31578 httpie
⭐ 30981 thefuck
⭐ 29831 flask
⭐ 29402 youtube-dl
$ githubstars django --lang python --count 5 --url --desc
⭐ 28394 django (https://github.com/django/django)
- The Web framework for perfectionists with deadlines.
⭐ 13937 sentry (https://github.com/getsentry/sentry)
- Sentry is a cross-platform crash reporting and aggregation platform.
⭐ 8685 django-rest-framework (https://github.com/encode/django-rest-framework)
- Web APIs for Django.
⭐ 5196 django-cms (https://github.com/divio/django-cms)
- The easy-to-use and developer-friendly CMS
⭐ 4931 Zappa (https://github.com/Miserlou/Zappa)
- Serverless Python Web Services
Installation
============
.. code-block:: bash
$ pip install githubstars
$ export GITHUB_API_TOKEN=""
Since Github require OAuth token to access GraphQL server, you must set personal access token first.
Refer: `Authenticating with GraphQL `_ and `Creating a personal access token for the command line `_
Usage
=====
.. code-block:: bash
$ githubstars -h
usage: githubstars [-h] [--lang] [--count] [--desc] [--url] [--verbose]
[--version]
[repo]
List repository stars and info through Github v4 GraphQL API
positional arguments:
repo repository name to search
optional arguments:
-h, --help show this help message and exit
--count number of repositories to show
--desc show repo description
--lang search based on language
--new-created created this week
--new-pushed pushed this week
--url show repo url
--verbose show request detail
--version show version
Reference
=========
#. `GitHub API | GitHub Developer Guide `__
#. `GraphQL API Explorer | GitHub Developer Guide `__
#. `Creating a personal access token for the command line - User Documentation `__
#. `Searching repositories - User Documentation `__