Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library/Wrapper to access and use GithubAPI #39

Open
coolharsh55 opened this issue Sep 3, 2015 · 1 comment
Open

Library/Wrapper to access and use GithubAPI #39

coolharsh55 opened this issue Sep 3, 2015 · 1 comment

Comments

@coolharsh55
Copy link
Contributor

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:

  • access to public repos and their details
  • access to public repos technologies used within repos
  • access to public issues, and collaborators
  • access to user's repos
@SanketDG
Copy link
Member

SanketDG commented Sep 3, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants