Pushing forward pytravis during Berlin Codefest 2013

Today has been the second and last day of the Codefest 2013. Yesterday we were working on an extension for ipython-cluster-helper, as I explained in my previous post. Today, I’ve decided to push forward a small personal project that I started a few months ago.

Was around January when we decided in Science For Life Laboratory to integrate our development in the Continuous Integration system Travis-CI. Travis-CI is a freely hosted CI system perfectly integrated with GitHub and with support for lots of programming languages. It has been helping us a lot in our development process: Our genomics pipeline is being automatically tested there. We develop mainly in Python, so I thought that would be nice to programatically be able to check the status of our builds, repositories, jobs, etc. So I decided to create a Python wrapper for the Travis-CI API.

I called this project pytravis, and today I gave it a push. I had it a bit abandoned due to other work with pressing deadlines, but today I brought it to a quite mature state. At this moment, you can:

  • Create python objects to represent: Users, repositories, builds, jobs, and logs
  • List repositories by owner in a nice way very easily
  • Get the state and other information of builds
  • Access private API endpoints through GitHub API token authentication

I thought that one contribution like this could be very good for automating things, as you don’t really need a browser to know the state of your projects. Here you have a practical example of using pytravis on automated correction of programming exercices.

I hope it can be used by more people. It still needs development and features, but I think is mature enough to start using it. Collaborations are welcome!

Advertisements

One thought on “Pushing forward pytravis during Berlin Codefest 2013

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s