cli工具,用于按星对从属存储库和包进行排序
ghtopdep的Python项目详细描述
ghtopdep
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 install --dev -e .