Skip to main content

pip update helpers

Project description

pipdate

CircleCI codecov Code style: black PyPi Version GitHub stars

pipdate is a collection of small pip update helpers. The commands

pipdate
pipdate3

updates all your pip{3}-installed packages. (Only works on Unix.)

There's a Python interface as well that can be used for update notifications. This

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

will print

╭──────────────────────────────────────────────╮
│                                              │
│        Update available 0.4.5 → 2.2.2        │
│   Run pip3 install -U matplotlib to update   │
│                                              │
╰──────────────────────────────────────────────╯

If you guard the check with

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

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 Distribution

pipdatedd-0.3.3.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

pipdatedd-0.3.3-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pipdatedd-0.3.3.tar.gz.

File metadata

  • Download URL: pipdatedd-0.3.3.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pipdatedd-0.3.3.tar.gz
Algorithm Hash digest
SHA256 531c282df6634f06bd91572de810955f82dc92983f633c4752eb8411da86570d
MD5 3e1d188debe14a4d2342ba02622c0091
BLAKE2b-256 2f65a2141fe8788cdbc20c62ee47e15e9cf937a50590f53752604ead59e4e067

See more details on using hashes here.

File details

Details for the file pipdatedd-0.3.3-py2.py3-none-any.whl.

File metadata

  • Download URL: pipdatedd-0.3.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pipdatedd-0.3.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1c046a24da39d2cd44a18a01c6f41e799e1441a253592cf519deadac12333a04
MD5 d58e6ca0c5fd387b44cdc7e060b569d5
BLAKE2b-256 87a5cb5498e681c7ed9cd8f020abc3dd7b4bdb706f34047df31fdb41daf5541f

See more details on using hashes here.

Supported by

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