在GitHub上获取趋势回购/用户的库

gtrending的Python项目详细描述


gtrending

{1}$ codecovdocs statuspypi versionPython RequirementsCode style: black

轻量级且易于使用的python库用于获取 趋势存储库和开发人员。依靠 github-trending-api 它是用JavaScript编写的,所以gtrending旨在填补这个空白 对于python。在

简单演示

fromgtrendingimportfetch_reposrepos=fetch_repos(language="python")# get the result as a dictforrepoinrepos:print(repo["fullname"])# full name (user/repo) of each repo

上面的例子将打印出所有的趋势Python项目 在GitHub上,今天的趋势,并打印他们的全名。在

要求

  • Python 3.6或更高版本

安装

^{pr2}$

API

文档:read the docs

fetch_repos()

Fetch trending repositories on GitHub

参数:

  • language (str, optional):按语言过滤,例如:python
  • spoken_language_code (str, optional):口语,例如:en代表英语
  • since (str, optional):时间范围,选择范围:[每日,每周,每月]。默认为“每日”

退货:

A list of dicts containing information for the trending repositories found

fetch_developers()

Fetch trending developers on GitHub

参数:

  • language (str, optional):编程语言,例如:python
  • since (str, optional):时间范围,从[每日、每周、每月]中选择。默认为“每日”

退货:

A list of dicts containing information for the trending repositories found


如果你喜欢这个库,请给它一个星,也许建议更多的功能!在

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

推荐PyPI第三方库


热门话题
java无法将自定义数据类型转换为字符串?   JavaLog4j和appender,这个Log4j定义正确吗?   用于换行的java Android Eclipse拆分   与某个方法关联的java启用/禁用JButton   java小部件列表视图加载视图   java国家/地区名称中的正则表达式   从Java调用Kotlin时,如何获取错误的行号?   java将视图传递给AsyncTask以访问findViewById   java SQL性能:多个绑定还是绑定到一个SQL变量以供重用?   BluetoothAdapter上的安卓 Java NullPointerException。isEnabled()   在clojure中取消引用java方法   JAVA网SocketException:IP_添加_成员身份失败(硬件筛选器不足?)   java从类对象的方法接收nullpointer异常   java使用for循环创建多个对象   java无法使用NTLM身份验证apache camel cxf   java Eclipse不喜欢@Override注释   java Spark SQL模拟红移(Oracle)“系统日期”或“当前日期”