Skip to content

Instantly share code, notes, and snippets.

View Aramgutang's full-sized avatar

Aram Dulyan Aramgutang

  • The Interaction Consortium
  • Sydney, Australia
View GitHub Profile
@Aramgutang
Aramgutang / check_for_updates.py
Created April 28, 2011 06:46 — forked from coordt/check_for_updates.py
Check locally installed packages against one or more package indexes for updates and list them.
#!/usr/bin/env python
"""
Use pip to get a list of local packages to check against one or more package
indexes for updated versions.
"""
import pip
import sys, xmlrpclib
from cStringIO import StringIO
from distutils.version import StrictVersion, LooseVersion
from subprocess import Popen, PIPE