A python module that will check for package updates.
Project Links
Meta
Author: Bryce Boe
Classifiers
Intended Audience
- Developers
License
- OSI Approved :: BSD License
Operating System
- OS Independent
Programming Language
- Python
- Python :: 3
- Python :: 3.6
- Python :: 3.7
- Python :: 3.8
update_checker
A python module that will check for package updates.
Only whitelisted packages can be checked for updates. Contact update_checker's author for information on adding a package to the whitelist.
Installation
The update_checker module can be installed via:
pip install update_checker
Usage
To simply output when there is a newer version of the praw package, you can
use the following bit of code:
from update_checker import update_check
update_check('praw', '0.0.1')
If you need more control, such as performing operations conditionally when there is an update you can use the following approach:
from update_checker import UpdateChecker
checker = UpdateChecker()
result = checker.check('praw', '0.0.1')
if result: # result is None when an update was not found or a failure occured
# result is a UpdateResult object that contains the following attributes:
# * available_version
# * package_name
# * running_version
# * release_date (is None if the information isn't available)
print(result)
# Conditionally perform other actions
0.18.0
Aug 04, 2020
0.17
Apr 27, 2020
0.16
Jan 10, 2017
0.15
Nov 27, 2016
0.14
Nov 27, 2016
0.13
Nov 21, 2016
0.12
Jul 05, 2016
0.11
Nov 16, 2014
0.10
Apr 26, 2014
0.9
Feb 26, 2014
0.8
Jan 22, 2014
0.7
Jan 16, 2014
0.6
Aug 22, 2013
0.5
Feb 17, 2013
0.4
Jan 21, 2013
0.3
Dec 17, 2012
0.2
Nov 05, 2012
0.1
Nov 04, 2012
