cli工具,用于按星对从属存储库和包进行排序

ghtopdep的Python项目详细描述


ghtopdep

imageimageimage

cli工具,用于按星对从属回购进行排序

要求

  • python 3.5及以上版本

安装

来自PYPI

$ pip install ghtopdep

从git存储库中

$ pip install git+https://github.com/github-tooling/ghtopdep.git#egg=ghtopdep

来源

$ git clone https://github.com/github-tooling/ghtopdep
$ cd ghtopdep
$ python setup.py install

版本升级

➜ pip install --upgrade ghtopdep   

用法

如果要检索包或存储库描述,则需要传递令牌。 为了防止未经身份验证的请求超出RALE限制,ghtopdep需要一个访问令牌。 对于公共存储库,create a token 获得公共回购许可。

您可以使用token作为环境变量GHTOPDEP_TOKEN~/.bashrc~/.zshrc

导出ghtopdep_token=“***********************************************”

或将令牌作为选项传递--令牌

➜ ghtopdep --help
Usage: ghtopdep [OPTIONS] URL

Options:
  --repositories / --packages  Sort repositories or packages (default
                               repositories)
  --description                Show description of packages or repositories
                               (performs additional request per repository)
  --rows INTEGER               Number of showing repositories (default=10)
  --minstar INTEGER            Minimum number of stars (default=5)
  --token TEXT
  --help                       Show this message and exit.
➜ ghtopdep https://github.com/dropbox/dropbox-sdk-js
+---------------------------------------------------+---------+
| url                                               |   stars |
+===================================================+=========+
| https://github.com/transloadit/uppy               |   20726 |
+---------------------------------------------------+---------+
| https://github.com/codesandbox/codesandbox-client |    7924 |
+---------------------------------------------------+---------+
| https://github.com/joemccann/dillinger            |    6452 |
+---------------------------------------------------+---------+
| https://github.com/keplergl/kepler.gl             |    5306 |
+---------------------------------------------------+---------+
| https://github.com/jitsi/jitsi-meet               |    4114 |
+---------------------------------------------------+---------+
| https://github.com/jsbin/jsbin                    |    3919 |
+---------------------------------------------------+---------+
| https://github.com/NorthwoodsSoftware/GoJS        |    3543 |
+---------------------------------------------------+---------+
| https://github.com/buttercup/buttercup-desktop    |    3004 |
+---------------------------------------------------+---------+
| https://github.com/openstyles/stylus              |    2101 |
+---------------------------------------------------+---------+
| https://github.com/mickael-kerjean/filestash      |    1610 |
+---------------------------------------------------+---------+
found 1583 repositories others repositories is private
found 419 repositories with more than zero star
~ via ⬢ v12.5.0 via ? v7.2.19 via ? 3.5.7 took 36s 

您还可以对软件包进行排序并获取其说明

➜ ghtopdep https://github.com/dropbox/dropbox-sdk-js --description --packages
+------------------------------------------------+---------+--------------------------------------------------------------+
| url                                            |   stars | description                                                  |
+================================================+=========+==============================================================+
| https://github.com/jsbin/jsbin                 |    3919 | Collaborative JavaScript Debugging App                       |
+------------------------------------------------+---------+--------------------------------------------------------------+
| https://github.com/jvilk/BrowserFS             |    1497 | BrowserFS is an in-browser filesystem that emulates the...   |
+------------------------------------------------+---------+--------------------------------------------------------------+
| https://github.com/coderaiser/cloudcmd         |    1043 | ✨☁️?✨ Cloud Commander file manager for the web with...       |
+------------------------------------------------+---------+--------------------------------------------------------------+
| https://github.com/node-red/node-red-web-nodes |     144 | A collection of node-red nodes aimed at web services         |
+------------------------------------------------+---------+--------------------------------------------------------------+
| https://github.com/robertknight/passcards      |     130 | A 1Password-compatible command-line and web-based...         |
+------------------------------------------------+---------+--------------------------------------------------------------+
| https://github.com/enyojs/ares-project         |     125 | A browser-based code editor and UI designer for Enyo 2...    |
+------------------------------------------------+---------+--------------------------------------------------------------+
| https://github.com/transloadit/uppy-server     |     115 | [DEPRECATED] 'Uppy Server' was renamed to 'Companion' and... |
+------------------------------------------------+---------+--------------------------------------------------------------+
| https://github.com/bioimagesuiteweb/bisweb     |      31 | This is the repository for the BioImage Suite Web Project    |
+------------------------------------------------+---------+--------------------------------------------------------------+
| https://github.com/sallar/dropbox-fs           |      29 | :package: Node FS wrapper for Dropbox                        |
+------------------------------------------------+---------+--------------------------------------------------------------+
| https://github.com/filefog/filefog             |      26 | A thin cloud-service agnostic wrapper/interface to access... |
+------------------------------------------------+---------+--------------------------------------------------------------+
found 130 packages others packages are private
found 57 packages with more than zero star

开发设置

使用Poetry

$ poetry install

Pipenv

$ pipenv install --dev -e .

许可证

MIT

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java JPA。Eclipselink没有为mySQL提供密码,但它应该提供   我的Servlet和@FormDataParam存在java问题   java将什么作为上下文参数传递到文件I/O方法中?   如果两个值相同,java无法找到其中一个单选按钮   java在变量和方法名中使用下划线   JavaSpringMVC单线程安全?   klazz类的java Arraylist(反射Api)   java如何在数字字符串中查找最频繁的数字?   JavaAPI设计:使数据更易于阅读与强制更多API调用   JavaHadoopMapReduceforGoogleWebGraph   java无法启动gauge API:Runner意外退出   java如何在bluemix上使用ibm工作负载调度器?   拉取一年中某一周特定日期的所有日期   java为什么是我的角节点。js应用程序将图像上传到S3� 邮递员正确上传时的符号?   在不使用任何第三方jar的情况下将文件从本地传输到linux系统(java代码)   java将现有文件夹复制到Eclipse工作区中新创建的项目中   Java中的regex RegExp帮助   当使用“系统”外观时,Java组合框setSelectedItem会出现故障   JavaASM:在类的方法中获取局部变量名和值