Skip to main content

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

Metadata

Release files for githubstars 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for githubstars 0.0.6
File Interpreter ABI Platform
githubstars-0.0.6-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / githubstars-0.0.6-py2.py3-none-any.whl

Download URL githubstars-0.0.6-py2.py3-none-any.whl
Size 6.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7c8b6858b0ee8063d449495211e120ff02576e90c7f10d05511a34d9b63481f8
BLAKE2b-256 checksum
How to use checksums
c81bbde26580102cc30090169ab41c69a279713af10db69b492dfdfce7ef9e48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page