Skip to main content

check for updates on PyPi

Project description

Build Status codecov PyPi Version GitHub stars

Small pip update helpers.

sudo -H pipdate
sudo -H pipdate3

updates all your pip{3}-installed packages.

There’s a Python interface as well that can be used for upgrade notifications. Simply do

import pipdate
msg = pipdate.check('matplotlib', '0.4.5')
print(msg)

This will print

Upgrade to   matplotlib 2.0.0    available! (installed: 0.4.5)

matplotlib's API changes in this upgrade. Changes to your code may be necessary.

To upgrade matplotlib with pip, type

   pip install -U matplotlib

To upgrade _all_ pip-installed packages, use

   pipdate/pipdate3

To disable these checks, set SecondsBetweenChecks in
/home/jdoe/.config/pipdate/config.ini

If you guard the check with

if pipdate.needs_checking('matplotlib'):
    print(pipdate.check('matplotlib', '0.4.5'))

then it will be performed at most every k seconds, where k is specified in the config file $HOME/.config/pipdate/config.ini, e.g., once a day

[DEFAULT]
secondsbetweenchecks = 86400

This can, for example, be used by module authors to notify users of upgrades of their own modules.

Installation

pipdate is available from the Python Package Index, so simply type

pip install pipdate

Testing

To run the pipdate unit tests, check out this repository and type

pytest

Distribution

To create a new release

  1. bump the __version__ number,

  2. publish to PyPi and GitHub:

    $ make publish

License

pipdate is published under the MIT license.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipdate-0.2.1-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pipdate-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pipdate-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e8f8bb99cb6504e3ad75b75935431f223797b4b44c35cec12476c84644f616bb
MD5 5e43631c8623fa070880f5301bcaf725
BLAKE2b-256 b903373bc7bc08dda3cca93153d959c8db1133dc80ee2bede35c3eee84134eb2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page