Skip to main content

List repository stars and info through Gituhb v4 GraphQL API

Project description

Github Stars

https://img.shields.io/pypi/v/githubstars.svg https://img.shields.io/pypi/l/githubstars.svg https://img.shields.io/pypi/pyversions/githubstars.svg https://travis-ci.org/hanksudo/githubstars.svg?branch=master

List repository stars and info through Github v4 GraphQL API

$ 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

$ pip install githubstars
$ export GITHUB_API_TOKEN="<your token here>"

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

$ 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

  1. GitHub API | GitHub Developer Guide

  2. GraphQL API Explorer | GitHub Developer Guide

  3. Creating a personal access token for the command line - User Documentation

  4. Searching repositories - User Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

githubstars-0.0.6-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file githubstars-0.0.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for githubstars-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7c8b6858b0ee8063d449495211e120ff02576e90c7f10d05511a34d9b63481f8
MD5 306c73725c3389c4d5f9cde4b4ba90db
BLAKE2b-256 c81bbde26580102cc30090169ab41c69a279713af10db69b492dfdfce7ef9e48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page