skip to navigation
skip to content

autoupgrade 0.1.3

Automatic upgrade of python modules and packages

Latest Version: 0.2.0


Automatic upgrade of Python modules and packages

quick start

from autoupgrade import AutoUpgrade

The above will upgrade “pip” if there is a new version of pip out there. The upgrade will be unattended and the python script will be restarted


pip install autoupgrade

or install latest from repo:

pip install



class AutoUpgrade(__builtin__.object)

AutoUpgrade class, holds one package


__init__(self, pkg, index=None)

Args: pkg (str): name of package index (str): alternative index, if not given will be used


Check if pkg has a later version Returns true if later version exists.


Restart application with same args as it was started. Does not return

upgrade(self, dependencies=False)

Upgrade the package unconditionaly Args: dependencies, update dependencies if True (see pip–no-deps)

upgrade_if_needed(self, restart=True, dependencies=False)

Upgrade the package if there is a later version available. Args: restart, restart app if True dependencies, update dependencies if True (see pip –no-deps)

Supported platforms

Currently tested on Linux with Python 2.7. Should be usable on Windows and *nix.

Test for Python 3 will be done some time.

Release notes


  • Fixed vital fault in 0.1.2


  • Setup file fixes
  • Removed verbose output as default
  • Return value fixed of upgrade()


  • Dependencies updated


Initial release

File Type Py Version Uploaded on Size
autoupgrade-0.1.3.tar.gz (md5) Source 2014-05-20 2KB
  • Downloads (All Versions):
  • 16 downloads in the last day
  • 83 downloads in the last week
  • 432 downloads in the last month