pip update helpers
Project description
pipdate
pipdate is a collection of small pip update helpers. The commands
pipdate
pipdate3
updates all your pip{3}-installed packages.
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
-
bump the
__version__
number, -
publish to PyPi and GitHub:
$ make publish
License
pipdate is published under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pipdate-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dc22cd5567ac6d26606c75d60ce61b1b4372124996f82755f3d92f8643ff0c9 |
|
MD5 | 7421f6ae4bed12d44773f8d00422e657 |
|
BLAKE2b-256 | 440581ccb47c2a561eefd688b6b7645f137a852a9ff7ee7ba63141cd88cbaba7 |