___ ______ _ ____ ____ _ _
/ \ * | | /\ | | \ / | * | \ | \
\ \ | | /\ \ | |* / | | | | | |
\ \ | | /--\ \ | | \ | | | | | |
*_\./ ._| / ._\ |_| \_ \.|__. |_|_. |_|
从命令行浏览 Github 上的热门项目 $ _
pip3 install starcli
用法: starcli [选项]
搜索和查询 GitHub 仓库
选项:
-l, --lang TEXT 编程语言筛选,例如:python。(可多次使用)
-S, --spoken-language TEXT 自然语言筛选,例如:en 表示英语,zh 表示中文
-c, --created TEXT 指定仓库创建日期,格式为 YYYY-MM-DD,
可使用 >date、<=date 等更具体的指定。
-t, --topic TEXT 主题筛选
-p, --pushed TEXT 指定最后推送日期,格式为 YYYY-MM-DD,允许使用 >=<
-L, --layout [list|table|grid] 输出格式(列表、表格或网格),默认为列表
-s, --stars TEXT 星标数,默认为 '>=100'。例如:
'>0'、'123'、'<50000'
-n, --num-results INTEGER 结果中的项目数量。默认值:7
-o, --order [desc|asc] 仓库按星标数排序,'desc' 或 'asc',
默认:desc
--long-stats 显示实际的统计数字(1300 而不是 1.3k)
-d, --date-range [day|week|month]
查看指定时间内获得的星标,可选:day、week、month。
使用 GitHub 趋势获取结果,因此某些其他
筛选选项可能不起作用。
-u, --user TEXT 按用户名筛选热门仓库
--auth TEXT 可选使用 GitHub 个人访问令牌,
格式为 'username:password'。
-P, --pager 使用 $PAGER 对输出进行分页。(在 $LESS 中
添加 -r 以启用 ANSI 样式)
--debug 开启调试模式
--help 显示此消息并退出。
使用 --layout {list|table|grid}
切换布局,或使用简短选项 -L
列表
<img src="https://yellow-cdn.veclightyear.com/0a4dffa0/3c01ad55-3944-4b63-9c90-de00d6cb5a67.png" width="400px;" alt="演示列表"/>表格
<img src="https://yellow-cdn.veclightyear.com/0a4dffa0/66a5d0c4-27f6-4d88-a994-f3332118b2da.png" width="800px;" alt=""/>网格
<img src="https://yellow-cdn.veclightyear.com/0a4dffa0/bfb56fb8-6a2b-4bb7-8909-4d3a896b58b5.png" width="800px;" alt="演示网格"/>这三种布局选项都支持仓库名称的可点击链接。如果 你的终端支持链接,你可以直接点击名称,它会 在你的浏览器中打开相应的 GitHub 仓库。
例如,如果你只想查找热门的 Python 仓库:使用 --lang
或 -l
:
starcli --lang python
这是另一个例子 starcli -l python -L grid
,使用 Python 和网格布局:
如果你想找到使用你的母语编写的仓库,可以使用 --spoken-language
或 -S
选项:
starcli --spoken-language zh
上述命令会列出用中文编写的仓库。
完整的语言代码列表可以在这里找到。
请注意,(与 --date-range
一样)--topics
、--pushed
、--created
等选项不会生效,因为 -d
使用了不同的搜索机制来查找结果。
(建议与 --created
一起使用)
默认范围是大于等于100颗星。
使用 --stars
或 -s
来指定你想要的范围,例如,如果你想找到拥有超过100颗星的仓库,可以使用:
starcli -s '>100'
注意,如果你使用类似 >1000
的条件,可能没有多少仓库能在约200天内(这是 --created
的默认值)获得超过1000颗星。要指定创建日期,请使用 --created
,详见下文。
你可以通过使用 --date-range
或 -d
选项来查看仓库今天、本周或本月收到的星标数:
starcli -d this-week -L table
这个命令还会以表格形式显示每个仓库本周收到的星标数。
-d
使用GitHub趋势搜索仓库,因此 --topic
、--pushed
、--created
选项不会生效。
--created
/-c
接受ISO8601格式的日期:yyyy-mm-dd
例如,要搜索2014年1月1日创建的仓库,使用:
starcli --created 2014-01-01
要搜索2014年1月1日或之后创建的仓库,使用:
starcli --created '>=2014-01-01'
此选项允许你按主题筛选。你可以使用 --topics
或 -t
在搜索中包含一个主题。
此选项可以多次使用。
starcli -l python -d 2020-07-06 -t deep-learning -t pytorch
当你想找到在指定日期最后更新的热门仓库时,使用 --pushed
/-p
,比如2020年1月1日:
starcli -p 2020-01-01
你也可以在值前加上">=<",像这样:
starcli -p '>=2020-01-01'
这会查找在2020年1月1日或之后最后推送的仓库。
在GitHub文档上阅读更多关于>=<语法的信息。
建议与 --stars
和/或 --date-created
一起使用。
也支持按GitHub用户名查找热门项目。使用 --user
或 -u
来实现。
只需在后面提供一个有效的GitHub用户名,像这样:
starcli -u torvalds
starcli -u gvanrossum
你可以使用 --date-range
或 -d
并指定today、this-week或this-month,这样GitHub趋势搜索功能将用于查找热门仓库,并告诉你根据你使用的选项,这一天/周/月获得了多少星标。
starcli -d this-week
<img src="https://yellow-cdn.veclightyear.com/0a4dffa0/3ef1cb64-3d72-49e1-af9a-c96bb0100014.png" width="800px;" alt="演示日期范围"/>
请注意,(与 --spoken-language
类似)--topics
、--pushed
、--created
等选项不会生效,因为 -d
使用了不同的搜索机制来查找结果。
不喜欢默认的7个结果?你可以使用 --limit-results
或 -r
后跟一个整数来改变它:
starcli -r 2
上面的命令只会给你两个仓库。如果你想把它放在 .bashrc
、.zshrc
或 fish_greeting
函数中,这很有用。
只需在那里添加 starcli -r 3 -L grid
,每次打开终端时,你都会看到3个热门仓库整齐地以网格格式打印出来,这是开始新一天的好方法(有点像Hacker Tab 扩展)。
可以使用 --pager
/-p
标志通过操作系统的分页器显示结果输出。
如果你使用less,请在 LESS
环境变量中添加 R
,以便正确显示颜色和样式。
如果starcli在短时间内向GitHub发送多个重复请求,可能会达到速率限制。
为避免这种情况,请使用 --auth
提供认证令牌:
starcli --auth 'username:token'
有关贡献指南和如何设置开发环境,请阅读CONTRIBUTING.md
。请记住,对本项目的所有贡献都应遵循其行为准则。
感谢这些优秀的人(emoji 图例):
<!-- ALL-CONTRIBUTORS-LIST:START - 请勿移除或修改此部分 --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <table> <tbody> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Shagilton"><img src="https://avatars0.githubusercontent.com/u/21122143?v=4?s=100" width="100px;" alt="Shagilton"/><br /><sub><b>Shagilton</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=Shagilton" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/hexbee"><img src="https://avatars2.githubusercontent.com/u/26668583?v=4?s=100" width="100px;" alt="hexbee"/><br /><sub><b>hexbee</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/issues?q=author%3Ahexbee" title="错误报告">🐛</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/swellander"><img src="https://avatars0.githubusercontent.com/u/22231097?v=4?s=100" width="100px;" alt="Sam Wellander"/><br /><sub><b>Sam Wellander</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=swellander" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.shivamsinha.xyz/"><img src="https://avatars0.githubusercontent.com/u/32016929?v=4?s=100" width="100px;" alt="Shivam Sinha"/><br /><sub><b>Shivam Sinha</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=shivam212" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.willmcgugan.com"><img src="https://avatars3.githubusercontent.com/u/554369?v=4?s=100" width="100px;" alt="Will McGugan"/><br /><sub><b>Will McGugan</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=willmcgugan" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ashikjm"><img src="https://avatars1.githubusercontent.com/u/12744524?v=4?s=100" width="100px;" alt="Ashik J M"/><br /><sub><b>Ashik J M</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=ashikjm" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ylchao"><img src="https://avatars0.githubusercontent.com/u/15059429?v=4?s=100" width="100px;" alt="Yu-Lin Chao"/><br /><sub><b>Yu-Lin Chao</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=ylchao" title="代码">💻</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Saif807380"><img src="https://avatars2.githubusercontent.com/u/50794619?v=4?s=100" width="100px;" alt="Saif Kazi"/><br /><sub><b>Saif Kazi</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=Saif807380" title="代码">💻</a> <a href="https://github.com/hedyhli/starcli/commits?author=Saif807380" title="文档">📖</a></td> <td align="center" valign="top" width="14.28%"><a href="http://arcanedomain.duckdns.org"><img src="https://avatars3.githubusercontent.com/u/16456078?v=4?s=100" width="100px;" alt="arcanearronax"/><br /><sub><b>arcanearronax</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=arcanearronax" title="测试">⚠️</a> <a href="https://github.com/hedyhli/starcli/commits?author=arcanearronax" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/jSadoski"><img src="https://avatars1.githubusercontent.com/u/1865629?v=4?s=100" width="100px;" alt="jSadoski"/><br /><sub><b>jSadoski</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=jSadoski" title="文档">📖</a> <a href="https://github.com/hedyhli/starcli/commits?author=jSadoski" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://www.odmishien.fun"><img src="https://avatars3.githubusercontent.com/u/25533384?v=4?s=100" width="100px;" alt="odmishien(Tetsuya MISHIMA)"/><br /><sub><b>odmishien(Tetsuya MISHIMA)</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=odmishien" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="http://linkedin.com/in/ineelshah"><img src="https://avatars1.githubusercontent.com/u/40118578?v=4?s=100" width="100px;" alt="Neel Shah"/><br /><sub><b>Neel Shah</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=ineelshah" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/0xflotus"><img src="https://avatars3.githubusercontent.com/u/26602940?v=4?s=100" width="100px;" alt="0xflotus"/><br /><sub><b>0xflotus</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=0xflotus" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/AkashD-Developer"><img src="https://avatars.githubusercontent.com/u/44431401?v=4?s=100" width="100px;" alt="Akash Dhanwani"/><br /><sub><b>Akash Dhanwani</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=AkashD-Developer" title="代码">💻</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="http://cqls.oregonstate.edu"><img src="https://avatars.githubusercontent.com/u/16343359?v=4?s=100" width="100px;" alt="Ed Davis"/><br /><sub><b>Ed Davis</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=davised" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://jeetizee.com"><img src="https://avatars.githubusercontent.com/u/33030965?v=4?s=100" width="100px;" alt="Jeff Chiang"/><br /><sub><b>Jeff Chiang</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=tizee" title="代码">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://dmitrykankalovich.com/"><img src="https://avatars.githubusercontent.com/u/6346981?v=4?s=100" width="100px;" alt="Dmitry Kankalovich"/><br /><sub><b>Dmitry Kankalovich</b></sub></a><br /><a href="https://github.com/hedyhli/starcli/commits?author=dzmitry-kankalovich" title="代码">💻</a></td> </tr> </tbody> </table> <!-- markdownlint-restore --> <!-- prettier-ignore-end --> <!-- ALL-CONTRIBUTORS-LIST:END -->本项目遵循all-contributors规范。欢迎任何形式的贡献!
本项目最初是从githunt
(Python版)分支而来,最初的目的是重写该项目以使用Rich代替colorama + tabulate。但现在,由于每个人的贡献,它已经拥有了比以前更多的功能。感谢所有人的贡献 🙌
字节跳动发布的AI编程神器IDE
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。
全能AI智能助手,随时解答生活与工作的多样问题
问小白,由元石科技研发的AI智能助手,快速准确地解答各种生活和工作问题,包括但不限于搜索、规划和社交互动,帮助用户在日常生活中提高效率,轻松管理个人事务。
实时语音翻译/同声传译工具
Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。
一键生成PPT和Word,让学习生活更轻松
讯飞智文是一个利用 AI 技术的项目,能够帮助用户生成 PPT 以及各类文档。无论是商业领域的市场分析报告、年度目标制定,还是学生群体的职业生涯规划、实习避坑指南,亦或是活动策划、旅游攻略等内容,它都能提供支持,帮助用户精准表达,轻松呈现各种信息。
深度推理能力全新升级,全面对标OpenAI o1
科大讯飞的星火大模型,支持语言理解、知识问答和文本创作等多功能,适用于多种文件和业务场景,提升办公和日常生活的效率。讯飞星火是一个提供丰富智能服务的平台,涵盖科技资讯、图像创作、写作辅助、编程解答、科研文献解读等功能,能为不同需求的用户提供便捷高效的帮助,助力用户轻松获取信息、解决问题,满足多样化使用场景。
一种基于大语言模型的高效单流解耦语音令牌文本到语音合成模型
Spark-TTS 是一个基于 PyTorch 的开源文本到语音合成项目,由多个知名机构联合参与。该项目提供了高效的 LLM(大语言模型)驱动的语音合成方案,支持语音克隆和语音创建功能,可通过命令行界面(CLI)和 Web UI 两种方式使用。用户可以根据需求调整语音的性别、音高、速度等参数,生成高质量的语音。该项目适用于多种场景,如有声读物制作、智能语音助手开发等。
AI助力,做PPT更简单!
咔片是一款轻量化在线演示设计工具,借助 AI 技术,实现从内容生成到智能设计的一站式 PPT 制作服务。支持多种文档格式导入生成 PPT,提供海量模板、智能美化、素材替换等功能,适用于销售、教师、学生等各类人群,能高效制作出高品质 PPT,满足不同场景演示需求。
选题、配图、成文,一站式创作,让内容运营更高效
讯飞绘文,一个AI集成平台,支持写作、选题、配图、排版和发布。高效生成适用于各类媒体的定制内容,加速品牌传播,提升内容营销效果。
专业的AI公文写作平台,公文写作神器
AI 材料星,专业的 AI 公文写作辅助平台,为体制内工作人员提供高效的公文写作解决方案。拥有海量公文文库、9 大核心 AI 功能,支持 30 + 文稿类型生成,助力快速完成领导讲话、工作总结、述职报告等材料,提升办公效率,是体制打工人的得力写作神器。
OpenAI Agents SDK,助力开发者便捷使用 OpenAI 相关功能。
openai-agents-python 是 OpenAI 推出的一款强大 Python SDK,它为开发者提供了与 OpenAI 模型交互的高效工具,支持工具调用、结果处理、追踪等功能,涵盖多种应用场景,如研究助手、财务研究等,能显著提升开发效率,让开发者更轻松地利用 OpenAI 的技术优势。
最新AI工具、AI资讯
独家AI资源、AI项目落地
微信扫一扫关注公众号