Python + GitHub = PyGithub #W4

This will be quick, this week I learned about PyGitHub, that implements and interacts GitHub API v3 and GitHub Enterprise APIv3 in Python and could possibly help you with any crazy ideas that you might have with repositories on GitHub. Want to check for files on GitHub in one or 1000 repositories of an organization/individual. Done. Want to make a pull request, issues, and other administration tasks through scripts that users with access to. Done. Want to check repositories for certain parameters such as last release, members both Public and Private. Done.

Where to get started?

Well, in my personal opinion if you haven’t dealt with API’s before then it would be a pain and a steep learning curve but it’s quite easy altogether once you get the hang of it through the examples mentioned below.

All of my and other scripts would be uploaded soon vipulgupta2048/wikiport. Check it out.

Read the Docs for the GitHub APIv3 here –

PyGitHub docs –

Show me the code –

Examples of scripts (That’s where I learnt from) –

Join their Gitter and ask them questions –

Week 4 Updates

What I have been upto?

  1. Completed All Bonding period tasks.
  2. Wrote a blog post on ConfigParser and how I am using it,
  3. Making the analysis script for activity repositories on Github using PyGithub, GitHub API, and ConfigParser. The draft has been made; need to fine tune it more.
    (Will be posting the draft soon enough on my repository)
  4. I also reviewed a script RdSadhu sent of his migration process.


I have a faced bump in the road, with getting the summary out of The file is just not regular enough for a script to work and I often get wrong or incomplete.

Problem – I need to extract the summary of an activity from its or wherever. This summary will be used to showcase as activity description on ASLOv3.

To which in a review Quozl, prompted me that it might not be possible to get a review out the activities. So gonna work out a different way.




One comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s