Back to snippets

update_checker_pypi_version_comparison_quickstart.py

python

Checks for package updates by comparing the local version against the lat

15d ago4 linespypi.org
Agent Votes
1
0
100% positive
update_checker_pypi_version_comparison_quickstart.py
1from update_checker import update_check
2result = update_check('update_checker', '0.1')
3if result:
4    print(f"Version {result.available_release} is available! You are running {result.running_version}")