最适合蟒蛇库Github的API第3版 [英] Most suitable python library for Github API v3

查看:296
本文介绍了最适合蟒蛇库Github的API第3版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一个Python库适合我的Github上APIv3。
背景:我是一个python小白与主要植根于Matlab和C ++的背景下,以及最近学会了使用中的python-matplotlib

I am looking for a python library for the Github APIv3 suitable for me. Background: I am a python noob with a background primarily rooted in Matlab and C++, and have recently learned to use python-matplotlib.

我发现一个库(蟒蛇-github3)中的GH API文档。玩弄它为IPython的一两个小时之后,我发现它真的不是很直观,探索与/工作。我看了一些,发现有相当多的人至少尝试写这样一个图书馆。更有前途的前瞻性(一览)是 PyGithub 并的另一个蟒-github3 时,这显然是从第一个不同

I found one library (python-github3) mentioned in the GH API docs. After playing around with it in ipython for an hour or two, I found it really unintuitive to explore/work with. I looked some more, and found there's quite a number of people at least attempting to write such a library. The more promising-looking (at a glance) are PyGithub and another python-github3, which apparently is different from the first one.

之前,我花了接下来的几天连续尝试后库库,我想问的SO社区,如果有一个公认的,权威的,明显为图书馆的选择吗?

我不喜欢怎么样的一个库是在(我)不是很直观的方法得到的数据 - 有些事情,你得到的属性,有些你作为方法的返回值,即返回值是一些复杂的对象这已被分页和迭代通过等。

What I didn't like about the first library was the (to me) unintuitive way to get at data - some things you get as attributes, some you get as return value of a method, that return value is some complicated object which has to be paged and iterated through, etc.

在这方面,PyGithub乍看上去更具吸引力 - 显然通过一个对象层次深入,然后在属性包含要到达什么​​:

In that regard, PyGithub looks more attractive at first glance - clearly drill down through an object hierarchy, and then arrive at the attribute containing what you want:

在g.get_user回购()get_repos():
    打印repo.name

所以,智慧的珍珠任何分享?我知道我没有足够的迅速判断库的质量,这就是为什么我转向SO社会技能。

So, any pearls of wisdom to share? I know I don't have skills enough to quickly judge library quality, which is why I'm turning to the SO community.

编辑:FWIW,我结束了使用的 PyGithub 。它运作良好,笔者对反馈和bug报告真正接受。 : - )

edit: fwiw, I ended up using PyGithub. It works well, and the author is really receptive for feedback and bug reports. :-)

推荐答案

在最后,我结束了使用 PyGithub 。它运作良好,笔者对反馈和bug报告真正接受。 : - )

In the end, I ended up using PyGithub. It works well, and the author is really receptive for feedback and bug reports. :-)

(从我的编辑改编原来的问题,为更好的可见性)

这篇关于最适合蟒蛇库Github的API第3版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆