StarCLI – Browse trending repos on GitHub by star, date, and more

栏目: IT技术 · 发布时间: 5年前

StarCLI – Browse trending repos on GitHub by star, date, and more

Browse trending repos on Github by :star: stars :star: from your command line! :computer:

StarCLI – Browse trending repos on GitHub by star, date, and more

Prerequisites

  • Requires Python 3.6 or greater

Installation

pip install starcli

Remember to use pip3 instead of pip if you also have Python 2 installed on your system

Usage

Usage: starcli [OPTIONS]

  Browse trending repos on GitHub by stars

Options:
  -l, --lang TEXT                 Language filter eg: python
  -d, --date-created TEXT         Specify repo creation date in ISO8601 format
                                  YYYY-MM-DD
  -L, --layout [list|table|grid]  The output format (list, table, or grid),
                                  default is list
  -s, --stars TEXT                Range of stars required, default is '>=100'
  -r, --limit-results INTEGER     Limit the number of results shown. Default:
                                  7
  -o, --order [desc|asc]          Specify the order of repos by stars that is
                                  shown, 'desc' or 'asc', default: desc
  --long-stats                    Print the actual stats[1300 instead of 1.3k]
  --debug                         Turn on debugging mode
  --help                          Show this message and exit.

Layouts

Switch layouts using --layout {list|table|grid} , or use the short option -L

list

StarCLI – Browse trending repos on GitHub by star, date, and more

table

StarCLI – Browse trending repos on GitHub by star, date, and more

grid

StarCLI – Browse trending repos on GitHub by star, date, and more

Filtering by language

For example, you only want to find popular Python repos, you can use --lang or -l :

starcli --lang python

Here, we used starcli -l python -L grid , which is python with grid layout:

StarCLI – Browse trending repos on GitHub by star, date, and more

Specify the number (or range) of stars

(Recommended to be used with --date-created )

The default range is >=100, you can change that! Use --stars or -s to specify what you want, for example, if you want to find repos that has more than 100 stars, you can use:

starcli -s '>100'

Note that if you do something like >1000 not many repos can have more than 1000 and is created within around 200 days, to specify date of creation, use --date-created , see below.

Specify the date of creation

Want to find newer, older, or just created repos? Just use --date-created or -d , and then provide a date in ISO8601 format: yyyy-mm-dd

For example, to 1st January 2014, use:

starcli --date-created 2014-01-01

Limit the number of results shown

Don't like the default 7? You can change it to something else, using --limit-results or -r followed by an integer:

starcli -r 2

The above will only give you two repos. This is useful if you want to put it in your .bashrc , .zshrc , or fish_greeting function.

Just add starcli -r 3 -L grid in there, and every time you open your terminal, you will find 3 trending repos printed neatly in a grid format, great way to start your day (bit like the Hacker Tab Extension :laughing: ).

Issues, feature request, and feedback

  • Issues, bug reports, or feature request: Don't hesitate to open an issue in this repo
  • Feedback: any general feedback or questions about using StarCLI you can leave a comment on our Product Hunt page , remember to be nice :)

Development

For contributing guidelines and how to set up your development environment, please read CONTRIBUTING.md . Remember that all contributions to this project should follow its CODE OF CONDUCT .

Uses

  • CommandLine Argument parser: Click
  • Colored and table console print: rich (with click and colorama)
  • HTTP library to send requests: requests

Contributors :sparkles:

Thanks goes to all of these wonderful people ( emoji key ):

StarCLI – Browse trending repos on GitHub by star, date, and more Shagilton
:computer:
StarCLI – Browse trending repos on GitHub by star, date, and more hexbee
:bug:
StarCLI – Browse trending repos on GitHub by star, date, and more Sam Wellander
:computer:
StarCLI – Browse trending repos on GitHub by star, date, and more Shivam Sinha
:computer:

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This project was forked from githunt (python) made by Srinivasa Rao , which in turn, is inspired by githunt (the JavaScript Web App) .

Liked this project? Don't forget to give it a :star:


以上所述就是小编给大家介绍的《StarCLI – Browse trending repos on GitHub by star, date, and more》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

笨办法学Python 3

笨办法学Python 3

[美]泽德 A. 肖 / 王巍巍 / 人民邮电出版社 / 2018-6-1 / CNY 59.00

本书是一本Python入门书,适合对计算机了解不多,没有学过编程,但对编程感兴趣的读者学习使用。这本书以习题的方式引导读者一步一步学习编程,从简单的打印一直讲到完整项目的实现,让初学者从基础的编程技术入手,最终体验到软件开发的基本过程。本书是基于Python 3.6版本编写的。 本书结构非常简单,除“准备工作”之外,还包括52个习题,其中26个覆盖了输入/输出、变量和函数3个主题,另外26个......一起来看看 《笨办法学Python 3》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

SHA 加密
SHA 加密

SHA 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具