Get Latest Version
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.
GitHub Actions
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
Usage
pip install get_latest_version
Digest of current latest Ubuntu image
from get_latest_version.dockerhub import get_current_image_digest
print(get_current_image_digest(USERNAME, DOCKER_HUB_TOKEN, "ubuntu"))
Latest available version of the Nextcloud AIO image
from get_latest_version.dockerhub import get_latest_image_version
print(get_latest_image_version(USERNAME, DOCKER_HUB_TOKEN, "nextcloud"))
Latest version of Matrix Authentication Service based on GitHub Container Registry versions
from get_latest_version.github import get_latest_version_from_package
print(get_latest_version_from_package(GITHUB_PAT, "element-hq", "matrix-authentication-service"))
Latest version of the ComfyUI based on GitHub releases
from get_latest_version.github import get_latest_version_from_releases
print(get_latest_version_from_releases(GITHUB_PAT, "comfyanonymous", "ComfyUI"))
Latest version of the ComfyUI based on GitHub tags
from get_latest_version.github import get_latest_version_from_tags
print(get_latest_version_from_tags(GITHUB_PAT, "comfyanonymous", "ComfyUI"))
Latest version of the requests from on PyPI
from get_latest_version.pypi import get_current_module_version
print(get_current_module_version("requests"))
Release files for get-latest-version 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| get_latest_version-2.0.1.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| get_latest_version-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.0 kB
Release files / get_latest_version-2.0.1.tar.gz
| Download URL | get_latest_version-2.0.1.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
413943540dd93f36742d510960546d37bdbeaa8ff244da7b742ec354c40078ff
|
|
BLAKE2b-256 checksum How to use checksums |
f859efe8abbdb7ceec9c95ad58b483ab26717592e6d4c7a4e39f7401ffa36055
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency logRelease files / get_latest_version-2.0.1-py3-none-any.whl
| Download URL | get_latest_version-2.0.1-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8097377ee8de5760cc6e947314760fcfebd7567749b476aa041568c435680b8d
|
|
BLAKE2b-256 checksum How to use checksums |
46d686fe842c30aeab384f54228d8c77fe6eb6df288027d3339a9e9f388b3073
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency log