Python module to get the latest version for various package types.
All package sources, except PyPI support passing a minimum and maximum version to constrain results.
The functions in this module are also available through these GitHub Actions:
- DockerHub/Current Digest
- DockerHub/Latest Version
- GitHub/Package Registry
- GitHub/Releases
- GitHub/Tags
pip install get_latest_version
from get_latest_version.dockerhub import get_current_image_digest
print(get_current_image_digest(USERNAME, DOCKER_HUB_TOKEN, "ubuntu"))
from get_latest_version.dockerhub import get_latest_image_version
print(get_latest_image_version(USERNAME, DOCKER_HUB_TOKEN, "nextcloud"))
from get_latest_version.github import get_latest_version_from_package
print(get_latest_version_from_package(GITHUB_PAT, "element-hq", "matrix-authentication-service"))
from get_latest_version.github import get_latest_version_from_releases
print(get_latest_version_from_releases(GITHUB_PAT, "comfyanonymous", "ComfyUI"))
from get_latest_version.github import get_latest_version_from_tags
print(get_latest_version_from_tags(GITHUB_PAT, "comfyanonymous", "ComfyUI"))
from get_latest_version.pypi import get_current_module_version
print(get_current_module_version("requests"))