Share your repls and programming experiences

← Back to all posts
pygaw - Python Github API Wrapper
William3 (10)

I am currently developing a Python API Wrapper for the Github API!

SO FAR, it can only get information about Repos, Users, and Organizations, but I plan for it to fully support all the features of the Github API in the future!

You can learn from the examples below and feel free to add to it! If you add to it, please leave a comment and I MIGHT add your additions to pygaw!

If you get a KeyError, that is due to Rate Limiting on the API!

I will add support for adding Authentication headers in the future!

Once I have pygaw more developed, I will publish it to PyPi so people can install it instead of putting pygaw's file in their project directory!

Commentshotnewtop
jean3 (1)

How about calling requests.get(url = URL) once for each endpoint and storing the result on the class?

William3 (10)

@William3 Some people may want to make stuff like live watchers count (for some reason) so I would probably have to add something like repo.reload() to send the GET request again