releaseprobe
Find out whether a newer version of a container image is available, and what changed. Inspired by Renovate's docker datasource:
- Reads OCI image labels
(
org.opencontainers.image.*), preferring them over the deprecated label-schema.org labels (org.label-schema.*). Manifest (list) annotations with the same keys take precedence, since unlike labels they can't be inherited from the base image. - Talks to the image's registry directly (Docker Hub, GHCR, Quay, or any registry implementing the Docker Registry HTTP API v2) to list tags and fetch labels - no docker daemon required.
- If the image's source label points at GitHub, fetches the real release
notes for every version between the current and the latest tag. Without a
source label, the repository is taken from the image's BuildKit build
provenance (
vcs:source) if it has one, and for GHCR imagesghcr.io/<owner>/<repo>is tried asgithub.com/<owner>/<repo>last.
Installation
pip install releaseprobe
Usage
Check for a newer version
releaseprobe check grafana/grafana:11.2.0
registry-1.docker.io/grafana/grafana:11.2.0: 11.2.0 -> 13.2.1
## 11.2.1
https://github.com/grafana/grafana/releases/tag/v11.2.1
### Features and enhancements
...
If the image is already at the latest version, it says so and exits; add
--json for machine-readable output (current_version, latest_version,
has_update, release_notes).
Set a GITHUB_TOKEN environment variable to avoid GitHub's low unauthenticated
rate limit when checking images with many releases.
Pass -v (INFO) or -vv (DEBUG) to log progress and diagnostics - registry
and GitHub requests, version comparisons, label parsing - to stderr, useful
when debugging a failed or unexpected check remotely.
Floating tags (:latest, :stable, ...)
A floating tag carries no version of its own, so there is nothing to compare
against the registry's other tags. Pass the currently installed image's
labels with --current-labels so releaseprobe can read the real version
(org.opencontainers.image.version) out of them instead:
docker inspect --format '{{json .Config.Labels}}' my-homeassistant-container \
| releaseprobe check homeassistant/home-assistant:stable --current-labels -
A path to a JSON file works too (--current-labels labels.json). Without
--current-labels, a floating tag fails with an error rather than silently
comparing against the wrong version.
Many images don't set a version label themselves and inherit their base
image's instead (e.g. ollama/ollama is labeled 24.04, from
ubuntu:24.04). A labeled version that none of the repository's tags carry
is therefore ignored. For such images - and those without any version
label - pass the installed image's manifest digests with --current-digest
(repeatable); releaseprobe then looks for the newest version tag that points
to one of them:
docker image inspect --format '{{index .RepoDigests 0}}' ollama/ollama:latest
# ollama/ollama@sha256:926d40fd...
releaseprobe check ollama/ollama:latest --current-labels labels.json \
--current-digest ollama/ollama@sha256:926d40fd...
Only the newest 25 version tags are looked up, so an install older than that is still reported as an unknown version.
Images built straight from a branch, without any version tags, can't be
compared by version at all. If the installed image (via --current-labels)
and the image the tag points to now both carry an
org.opencontainers.image.revision label, releaseprobe compares those git
revisions instead: the versions are reported as short commit hashes, and for
GitHub sources the commits in between (from GitHub's compare API) become the
release notes. If the revisions are the same but the digests (when given)
differ, the label is assumed to come from the base image and the version is
reported as unknown.
Limitations:
- Only public/anonymous registry access is supported - no credentials for private images or registries yet.
- Tags are compared as versions using a simple
X.Y[.Z...]pattern (PEP 440 under the hood, sov1.2.3works too); tags that don't look like a version -latest, digests, build numbers - are ignored, flavored tags like1.2.3-alpineare only compared with tags of the same flavor, and pre-releases are never suggested as "latest". - Real release notes are only fetched for GitHub-hosted sources; other hosts fall back to just the source URL.
Interpret labels you already have
For offline use (no network access), releaseprobe labels interprets a JSON
object of labels directly, e.g. straight from docker inspect:
docker inspect --format '{{json .Config.Labels}}' ghcr.io/org/app:1.2.3 \
| releaseprobe labels
version: 1.2.3
source: https://github.com/org/app
url: -
documentation: -
revision: abc123
release notes: https://github.com/org/app
A path to a JSON file works too (releaseprobe labels labels.json); omit the
path or pass - to read from stdin. Add --json for machine-readable output.
Library usage
from releaseprobe import check_for_update, probe_labels
result = check_for_update("grafana/grafana:11.2.0")
result.has_update # True
result.latest_version # "13.2.1"
result.release_notes # list[ReleaseNote], oldest first
info = probe_labels({"org.opencontainers.image.source": "https://github.com/org/app"})
info.release_notes_url() # "https://github.com/org/app"
If the installed version of a floating-tag image can't be determined,
UnknownVersionError carries what is known about the installed image:
from releaseprobe import UnknownVersionError, check_for_update, repository_name
try:
check_for_update("ghcr.io/org/app:latest", labels, current_digests=digests)
except UnknownVersionError as err:
err.installed_version # "latest (sha256:0123456789ab)"
err.reason # "floating tag 'latest', no version label, ..."
err.current_info.release_notes_url() # from the installed image's labels
# The key check_for_update's tags_cache uses, for any image reference:
repository_name("nginx") # "registry-1.docker.io/library/nginx"
Every public function logs progress and diagnostics through the standard
logging module, under logger names rooted at releaseprobe (e.g.
releaseprobe.registry) - configure those as usual to see them. To route the
logs elsewhere instead, e.g. into your own application's logging setup, pass
a logger:
import logging
logger = logging.getLogger("myapp.releaseprobe")
result = check_for_update("grafana/grafana:11.2.0", logger=logger)
Development
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest
ruff check .
mypy
Dev container
A dev container is included so you can try releaseprobe in VS Code: open the repo and choose "Reopen in Container" (needs the Dev Containers extension). It gives you a Python 3.12 environment with the project installed in editable mode.
releaseprobe check <image> works straight away in the container - it only
needs outbound network access, not a docker daemon. To try the offline
labels command against a real image instead, inspect it from your host and
drop the labels into the workspace (they land in the container too, since the
workspace folder is mounted in):
# on your host
docker inspect --format '{{json .Config.Labels}}' ghcr.io/grafana/grafana:11.2.0 > labels.json
# inside the dev container
releaseprobe labels labels.json
Releasing
Bump the __version__ string in src/releaseprobe/__init__.py and merge to
main. The CI pipeline detects the version bump, tags the commit, creates a
GitHub release with auto-generated notes, and publishes the package to PyPI.
License
MIT, see LICENSE.
Metadata
Release files for releaseprobe 1.1.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 | Provenance | Actions |
|---|---|---|---|---|
| releaseprobe-1.1.1.tar.gz | 39.4 kB | With provenance | Details for releaseprobe-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| releaseprobe-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for releaseprobe-1.1.1-py3-none-any.whl |
Total release size: 69.3 kB
Release files / releaseprobe-1.1.1.tar.gz
| Download URL | releaseprobe-1.1.1.tar.gz |
|---|---|
| Size | 39.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54d4bf097ac7e35aaf303dde08857d3cdb4cc23165bc066651455654f5a3f38b
|
|
BLAKE2b-256 checksum How to use checksums |
daee70794eb6c8a2631ff00a8e2968c7c99d7c234d09053db8dcb2317f8d7462
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 5, 2026.
Transparency logRelease files / releaseprobe-1.1.1-py3-none-any.whl
| Download URL | releaseprobe-1.1.1-py3-none-any.whl |
|---|---|
| Size | 30.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9d21ab0f3aeb0ef6e8d09448540d8bb5d24d7c2864908b657ccf1fc56bd4617
|
|
BLAKE2b-256 checksum How to use checksums |
29f006ceb5ca5e34893a9ddbb90a4b83fb6814adda9ce0a4fc172e26985667aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 5, 2026.
Transparency logSecurity for releaseprobe 1.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for releaseprobe-1.1.1.tar.gz
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 Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.