根据您感兴趣的存储库建议github存储库的工具。

gitsuggest的Python项目详细描述


pypivpyvLicenceThanks

一个根据您显示的存储库建议github存储库的工具 对…感兴趣。

Demo

这里发生了什么事?

Programs must be written for people to read, and only incidentally for machines to execute. ~ Hal Abelson

成为一个更好的程序员的一个快速方法是阅读smart编写的代码 人。github使查找这样的代码/存储库变得容易。一天结束时 我们都对自己的特定领域感兴趣,我们通过 “星光”存储库和/或“跟随”对这些内容做出贡献的人员 储存库。

这是一个工具,它使用您所标记的存储库和存储库 你所关注的那些人已经开始帮助你发现 你可能会感兴趣。

有多快?

这完全取决于你拥有的存储库的数量,以及你关注的人的数量 已经主演了。根据这个数字,可能需要一分钟到 两分钟给你建议的存储库列表。

设置

使用pip

pip install gitsuggest

直接从存储库

git clone --recursive https://github.com/csurfer/gitsuggest.git
python gitsuggest/setup.py install

设置后

如果你看到一个stopwords错误,这意味着你没有语料库 停止字从NLTK下载。您可以使用下面的命令下载它。

python -c "import nltk; nltk.download('stopwords')"

用法

作为命令

# For help with usage
gitsuggest --help

# With just username in command to provide password secretly
gitsuggest <username>

# Password can be skipped which means you chose to go the unauthenticated
# way which may raise RateLimitExceeded exception. To skip password enter
# nothing when prompted for password and press enter.
# NOTE: Using it this way generates a static html page with the search
# results. This gets opened it in your default browser.
# To fetch better suggestions at the cost of extra time and calls
gitsuggest <username> --deep_dive

# Without the --deep_dive flag we limit the suggestion to consider only
# the repositories you have starred. With --deep_dive we also consider
# repositories which people you follow have starred.

作为模块

fromgitsuggestimportGitSuggest# To use with username password combinationgs=GitSuggest(username=<username>,password=<password>)# To use with access_tokengs=GitSuggest(token=access_token)# To use without authenticatinggs=GitSuggest(username=<username>)# To use with deep dive flaggs=GitSuggest(username=<username>,password=<password>,token=None,deep_dive=True)gs=GitSuggest(token=access_token,deep_dive=True)gs=GitSuggest(username=<username>,deep_dive=True)# To get an iterator over suggested repositories.gs.get_suggested_repositories()

常见问题解答

为什么我们需要验证(使用密码)才能获得建议,我浏览 Gihub一直都没有认证?

你没有。从v0.0.4 使用密码进行身份验证,但要知道通过api访问github的是 高速率限制,对于未经验证的请求,当 与认证的比较。有关ratelimits的详细信息。

这意味着在没有密码(未经验证)的情况下使用时 失败,出现ratelimiteexceeded异常。

贡献

错误报告和功能请求

请使用issue tracker报告错误或功能请求。

发展

最欢迎拉取请求。

给开发商买杯咖啡!

如果您觉得这个实用程序有用,可以使用

Donate

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

推荐PyPI第三方库


热门话题
由于测试失败,java testcontainers maven构建失败   java实现jacobi算法实现laplace方程   java中的多线程:如何在不等待所有线程使用ExecutorService完成任务的情况下终止所有线程的执行?   java Hello World不在Android Studio 3中工作   ubuntu Tomcat7的Java版本不正确   java Javafx内存泄漏   对于手动实现的Spring数据存储库方法,我应该使用Java8默认方法吗?   googleappengine中的java添加过滤查询   html当使用JSOUP库在Java中读取标签时,如何保留标签(如<br>、<ul>、<li>、<p>等)的含义?   编码为什么jasper生成的报告在Java中不显示西里尔语(保加利亚语)?   java有没有办法隐藏当前位置和jdk动作?   java找出编译原型文件的版本   有没有办法在运行时更改java方法的访问修饰符?   语法字符串。。。Java中的参数   java数组元素在添加其他元素时会相互覆盖   eclipse中的java GWT项目   java如何为spring rest模板请求将动态json属性名映射到jackson   java无法在Windows 10上找到特定的JDK   在xml字符串和java字符串之间提取正则表达式子字符串