henriqueslab-updater
Centralized update checking library for HenriquesLab Python packages.
Features
- Multi-source version checking: PyPI, Homebrew, GitHub formulas
- Installation method detection: Automatically detects Homebrew, pipx, uv, pip (user/system), and development installations
- Smart caching: 24-hour TTL to avoid excessive network requests
- Non-blocking: Background checks that don't disrupt CLI execution
- Pluggable architecture: Customizable version sources, notifiers, and plugins
- Optional changelog integration: Display changelog highlights in update notifications
- Minimal dependencies: Only
packagingrequired, optionalrichandhttpxfor enhanced features
Installation
pip install henriqueslab-updater
With optional dependencies:
pip install henriqueslab-updater[all] # includes rich and httpx
pip install henriqueslab-updater[rich] # just rich formatting
Quick Start
from henriqueslab_updater import UpdateChecker
# Simple usage
checker = UpdateChecker(
package_name="your-package",
current_version="1.0.0",
)
# Start background check (non-blocking)
checker.check_async()
# Later, show notification if available
checker.show_notification()
Advanced Usage
from henriqueslab_updater import (
UpdateChecker,
ChangelogPlugin,
RichNotifier,
)
checker = UpdateChecker(
package_name="your-package",
current_version="1.0.0",
notifier=RichNotifier(title="Update Available"),
plugins=[
ChangelogPlugin(
changelog_url="https://raw.githubusercontent.com/org/repo/main/CHANGELOG.md",
highlights_per_version=3,
),
],
)
checker.check_async()
checker.show_notification()
Supported Installation Methods
- Homebrew (
brew) - pipx
- uv tools
- pip (user and system installs)
- Development (git clone + editable install)
Configuration
Environment variables:
NO_UPDATE_NOTIFIER=1- Disable all update checks{PACKAGE}_NO_UPDATE_CHECK=1- Disable for specific package
License
MIT License - see LICENSE file for details.
Development
git clone https://github.com/HenriquesLab/henriqueslab-updater.git
cd henriqueslab-updater
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[all,dev]"
pytest
Metadata
Release files for henriqueslab-updater 1.2.0
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 |
|---|---|---|---|---|
| henriqueslab_updater-1.2.0.tar.gz | 33.3 kB | With provenance | Details for henriqueslab_updater-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| henriqueslab_updater-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for henriqueslab_updater-1.2.0-py3-none-any.whl |
Total release size: 68.1 kB
Release files / henriqueslab_updater-1.2.0.tar.gz
| Download URL | henriqueslab_updater-1.2.0.tar.gz |
|---|---|
| Size | 33.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e3ec84e912c46a9ae64a2a325b1fd10dd70e9cc68fbf821e9eb9a04af2f442d
|
|
BLAKE2b-256 checksum How to use checksums |
bf418673c91d64df0639115d246b1ac70f401186dd6402c24fc625233cfc9d97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 17, 2025.
Transparency logRelease files / henriqueslab_updater-1.2.0-py3-none-any.whl
| Download URL | henriqueslab_updater-1.2.0-py3-none-any.whl |
|---|---|
| Size | 34.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43f026e323ef62337b0d029e442952473fa9b121d3c7da4be60ede7757e51364
|
|
BLAKE2b-256 checksum How to use checksums |
a1f9fd49114368bb0a4398f2c8822aefad381739b6944071e3044df59586b216
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 17, 2025.
Transparency logSecurity for henriqueslab-updater 1.2.0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for henriqueslab_updater-1.2.0.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 Dec 17, 2025.
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.