Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nschloe/pipdate
Small pip update helpers.
https://github.com/nschloe/pipdate
pypi python python3 version
Last synced: 6 days 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 8 years ago)
- Default Branch: main
- Last Pushed: 2022-04-15T22:31:14.000Z (over 2 years ago)
- Last Synced: 2024-10-31T16:57:57.726Z (13 days ago)
- Topics: pypi, python, python3, version
- Language: Python
- Homepage:
- Size: 210 KB
- Stars: 73
- Watchers: 5
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pipdate
[![PyPi Version](https://img.shields.io/pypi/v/pipdate.svg?style=flat-square)](https://pypi.org/project/pipdate)
[![Anaconda Cloud](https://anaconda.org/conda-forge/pipdate/badges/version.svg?=style=flat-square)](https://anaconda.org/conda-forge/pipdate/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/pipdate.svg?style=flat-square)](https://pypi.org/pypi/pipdate/)
[![GitHub stars](https://img.shields.io/github/stars/nschloe/pipdate.svg?style=flat-square&logo=github&label=Stars&logoColor=white)](https://github.com/nschloe/pipdate)
[![PyPi downloads](https://img.shields.io/pypi/dm/pipdate.svg?style=flat-square)](https://pypistats.org/packages/pipdate)[![gh-actions](https://img.shields.io/github/workflow/status/nschloe/pipdate/ci?style=flat-square)](https://github.com/nschloe/pipdate/actions?query=workflow%3Aci)
[![codecov](https://img.shields.io/codecov/c/github/nschloe/pipdate.svg?style=flat-square)](https://codecov.io/gh/nschloe/pipdate)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](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 pipdatepipdate.check("matplotlib", "0.4.5")
```
will printThis 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 pipdateif 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).