Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python 3 friendly automatic upgrade of python modules and packages

Project Description

Python 3 friendly automatic upgrade of Python modules and packages

quick start


from autoupgrade3 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 autoupgrade3

or install latest from repo:


pip install




class AutoUpgrade(__builtin__.object)

AutoUpgrade class, holds one package



__init__(self, pkg, index=None, verbose=False)

Args: pkg (str): name of package index (str): alternative index, if not
given default from *pip* will be used. Include full index url, e.g.



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



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


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/3.5. Should be usable on Windows and \*nix.

Release notes


Forked from autoupgrade
Python 3.5 support


Corrections: - Issue #2, Index did not work when specified - Issue #3,
Autoupgrade should not print to console (added verbose flag to keep
backward compatibility - Issue #4, Support for pip > 0.6


Corrections: - Issue #1, Extra index did not work for all servers.


- Fixed bug when version contains characters.


- Fixed vital fault in 0.1.2


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


- Dependencies updated


Initial release


- Homepage:
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
autoupgrade3-0.2.1.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source Jun 25, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting