Python module to get the latest version for various package types.
Project description
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"))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file get_latest_version-1.0.3.tar.gz.
File metadata
- Download URL: get_latest_version-1.0.3.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ea2a6c03829659d5d224f6fce7538c6d202a711b694aa29c84ec62d91b9da62
|
|
| MD5 |
72af27413efa53baccd10dc1fb893963
|
|
| BLAKE2b-256 |
909f7153b327d04eb9d54bbc86f1e261b93cff05e89893673fc3272760a5198e
|
Provenance
The following attestation bundles were made for get_latest_version-1.0.3.tar.gz:
Publisher:
release.yml on joepitt91/latest_version
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
get_latest_version-1.0.3.tar.gz -
Subject digest:
6ea2a6c03829659d5d224f6fce7538c6d202a711b694aa29c84ec62d91b9da62 - Sigstore transparency entry: 219310623
- Sigstore integration time:
-
Permalink:
joepitt91/latest_version@6673958931691d94b9d04b240aee1ebc4e457b38 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/joepitt91
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6673958931691d94b9d04b240aee1ebc4e457b38 -
Trigger Event:
release
-
Statement type:
File details
Details for the file get_latest_version-1.0.3-py3-none-any.whl.
File metadata
- Download URL: get_latest_version-1.0.3-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cfa6677d310b492981fcd8833a0b037cef8b624486ba27507c35d1c9f255678
|
|
| MD5 |
95c051379bccfd52d49da5c39bf49eff
|
|
| BLAKE2b-256 |
571db4220976f5daf71984fc3d8772c3add0d11cdbffb717c106cec613f755cc
|
Provenance
The following attestation bundles were made for get_latest_version-1.0.3-py3-none-any.whl:
Publisher:
release.yml on joepitt91/latest_version
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
get_latest_version-1.0.3-py3-none-any.whl -
Subject digest:
1cfa6677d310b492981fcd8833a0b037cef8b624486ba27507c35d1c9f255678 - Sigstore transparency entry: 219310625
- Sigstore integration time:
-
Permalink:
joepitt91/latest_version@6673958931691d94b9d04b240aee1ebc4e457b38 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/joepitt91
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6673958931691d94b9d04b240aee1ebc4e457b38 -
Trigger Event:
release
-
Statement type: