Skip to main content

Command-line tool to updated outdated python packages

Project description

pip_upgrade_outdated

Run pip install --upgrade for all outdated packages (pip list --outdated).

Allow specifying which version of pip to run, and parallel or serial execution of the upgrade step.

Command line usage

usage: pip_upgrade_outdated [-h] [-3 | -2 | --pip_cmd PIP_CMD]
                            [--serial | --parallel]
                            [--sequential_run | --batch_run] [--user]
                            [--dry_run] [--verbose] [--version]
                            [--exclude PKG]

Upgrade outdated python packages with pip. Any unknown arguments will be passed to pip.

optional arguments:
  -h, --help            show this help message and exit
  -3                    use pip3
  -2                    use pip2
  --pip_cmd PIP_CMD     use PIP_CMD (default pip)
  --serial, -s          upgrade in serial via a single pip upgrade command (default)
  --parallel, -p        upgrade in parallel via individual pip upgrade commands
  --sequential, -q      upgrade in serial via individual pip upgrade commands
  --user, -u            Adds the --user flag when installing the packages
  --dry_run, -n         get list, but don't upgrade
  --verbose, -v         may be specified multiple times
  --version             show program's version number and exit
  --exclude PKG, -x PKG
                        exclude PKG; may be specified multiple times

TODO

  • Need better error handling?
  • Should the script explicitly return a value to the shell?
  • allow patterns in exclude option

Sources

Project details


Download files

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

Files for pip-upgrade-outdated, version 1.5
Filename, size File type Python version Upload date Hashes
Filename, size pip_upgrade_outdated-1.5-py2-none-any.whl (6.1 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size pip_upgrade_outdated-1.5-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pip_upgrade_outdated-1.5.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page