Centralized update checking library for HenriquesLab Python packages
Project description
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
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 henriqueslab_updater-1.2.0.tar.gz.
File metadata
- Download URL: henriqueslab_updater-1.2.0.tar.gz
- Upload date:
- Size: 33.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e3ec84e912c46a9ae64a2a325b1fd10dd70e9cc68fbf821e9eb9a04af2f442d
|
|
| MD5 |
3bde6eee5d40a638875726f22187724e
|
|
| BLAKE2b-256 |
bf418673c91d64df0639115d246b1ac70f401186dd6402c24fc625233cfc9d97
|
Provenance
The following attestation bundles were made for henriqueslab_updater-1.2.0.tar.gz:
Publisher:
publish-to-pypi.yml on HenriquesLab/henriqueslab-updater
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
henriqueslab_updater-1.2.0.tar.gz -
Subject digest:
8e3ec84e912c46a9ae64a2a325b1fd10dd70e9cc68fbf821e9eb9a04af2f442d - Sigstore transparency entry: 768758383
- Sigstore integration time:
-
Permalink:
HenriquesLab/henriqueslab-updater@28c05e038d3c4262104fe3466001078720b31e14 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/HenriquesLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@28c05e038d3c4262104fe3466001078720b31e14 -
Trigger Event:
release
-
Statement type:
File details
Details for the file henriqueslab_updater-1.2.0-py3-none-any.whl.
File metadata
- Download URL: henriqueslab_updater-1.2.0-py3-none-any.whl
- Upload date:
- Size: 34.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43f026e323ef62337b0d029e442952473fa9b121d3c7da4be60ede7757e51364
|
|
| MD5 |
950cb1d99ed80f6713468c69a296dff0
|
|
| BLAKE2b-256 |
a1f9fd49114368bb0a4398f2c8822aefad381739b6944071e3044df59586b216
|
Provenance
The following attestation bundles were made for henriqueslab_updater-1.2.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on HenriquesLab/henriqueslab-updater
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
henriqueslab_updater-1.2.0-py3-none-any.whl -
Subject digest:
43f026e323ef62337b0d029e442952473fa9b121d3c7da4be60ede7757e51364 - Sigstore transparency entry: 768758391
- Sigstore integration time:
-
Permalink:
HenriquesLab/henriqueslab-updater@28c05e038d3c4262104fe3466001078720b31e14 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/HenriquesLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@28c05e038d3c4262104fe3466001078720b31e14 -
Trigger Event:
release
-
Statement type: