Skip to main content

Python module to get the latest version for various package types.

Project description

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.

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

get_latest_version-1.0.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_latest_version-1.0.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file get_latest_version-1.0.0.tar.gz.

File metadata

  • Download URL: get_latest_version-1.0.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for get_latest_version-1.0.0.tar.gz
Algorithm Hash digest
SHA256 80a5792648a117375d83c5bc4837c7d0d42a1a01267bb8347526b192ccd37027
MD5 223092462bd892ffded13b82c858da16
BLAKE2b-256 afda603331b38a15865976b5592cc4558832ae57d6c0db1c705c2a25db8f8a22

See more details on using hashes here.

Provenance

The following attestation bundles were made for get_latest_version-1.0.0.tar.gz:

Publisher: release.yml on joepitt91/latest_version

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file get_latest_version-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for get_latest_version-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e045ed50527df26782c75b886505390bc4972bc538bd83acaf53cde68b7c139a
MD5 d0e20c5ea93e0cbf7f0556491e4480c0
BLAKE2b-256 37cd7c3d85ef318df7ed8c9ce3c6c5b5a43fc632b76cec771c5575750899988a

See more details on using hashes here.

Provenance

The following attestation bundles were made for get_latest_version-1.0.0-py3-none-any.whl:

Publisher: release.yml on joepitt91/latest_version

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page