https://github.com/nschloe/pipdate
Small pip update helpers.
https://github.com/nschloe/pipdate
pypi python python3 version
Last synced: 3 months ago
JSON representation
Small pip update helpers.
- Host: GitHub
- URL: https://github.com/nschloe/pipdate
- Owner: nschloe
- License: gpl-3.0
- Created: 2017-01-17T13:50:25.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2022-04-15T22:31:14.000Z (over 3 years ago)
- Last Synced: 2025-08-31T19:52:05.896Z (3 months ago)
- Topics: pypi, python, python3, version
- Language: Python
- Homepage:
- Size: 210 KB
- Stars: 73
- Watchers: 4
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pipdate
[](https://pypi.org/project/pipdate)
[](https://anaconda.org/conda-forge/pipdate/)
[](https://pypi.org/pypi/pipdate/)
[](https://github.com/nschloe/pipdate)
[](https://pypistats.org/packages/pipdate)
[](https://github.com/nschloe/pipdate/actions?query=workflow%3Aci)
[](https://codecov.io/gh/nschloe/pipdate)
[](https://github.com/psf/black)
pipdate is a collection of small pip update helpers. The command
```bash
pipdate
# or python3.9 -m pipdate
```
updates _all_ your pip-installed packages. (Only works on Unix.)
There's a Python interface as well that can be used for update notifications.
This
```python
import pipdate
pipdate.check("matplotlib", "0.4.5")
```
will print

This can, for example, be used by package authors to notify users of upgrades of
their own packages.
If you guard the check with
```python
import pipdate
if pipdate.needs_checking("matplotlib"):
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
```
### Installation
pipdate is [available from the Python Package
Index](https://pypi.org/project/pipdate/), so simply type
```
pip install pipdate
```
### Testing
To run the pipdate unit tests, check out this repository and type
```
pytest
```
### License
This software is published under the [GPLv3 license](https://www.gnu.org/licenses/gpl-3.0.en.html).