Djenesis / contributr

An online tool for programmers to find projects they can contribute to and project maintainers to find contributors.
MIT License
16 stars 16 forks source link

Library/Wrapper to access and use GithubAPI #39

Open coolharsh55 opened 9 years ago

coolharsh55 commented 9 years ago

We need to use the GithubAPI to access repositories and their details. Rather than creating RESTful services directly in our apps, we can use libraries/wrappers to access the GithubAPI.

This issue acts as a place of discussion for the various libraries, and to select which of them are best suited for out purpose.

We need:

SanketDG commented 9 years ago

Interfacing with the GitHub API is really easy. This is a simple script which displays all repositories of a given user:

import requests

repos = requests.get("https://api.github.com/users/{}/repos".format(input())).json()
for i in repos:
    print(i['name'])

These are list of wrappers of Github's API docs https://developer.github.com/libraries/#python

I have used PyGithub and github3.py and I find github3.py more suited to our needs.