holoviz-utils
A Python package for HoloViz utilities.
Installation
pip install -e .
For development:
pip install -e ".[dev]"
Usage
import holoviz_utils
Caption templates
DataPresentation renders the __doc__ of its components — and its
title / introduction / conclusion params — as live captions. Any
{...} token is substituted against current parameter values and re-rendered
automatically whenever a referenced value changes.
A token is {[func(]param[keys][:fmt])} (only param is required):
param— a parameter name, resolved on the presentation or any reachable sub-object (aDataCombiner, a layer, a colormap, …).[keys]— index/key lookups. A quoted key (['label']) is literal; an unquoted key ([highlight_name]) is another param ref whose value is used as the key — this is how you turn a code into a display name.func(...)— an optional whitelisted function (len,sum,min,max,abs,round,sorted,int,float,str,bool).:fmt— an optional Python format spec (:0.1f,:,,%Y-%m-%d, …).
A token that resolves to None renders as unknown.
# highlight_name == "Q"; cmap_var_styles == {"Q": {"label": "Discharge (m³/s)"}, ...}
dgl.__doc__ = (
"Time-series for the {cmap_var_styles[highlight_name]['label']} at the "
"{click_state['properties']['S6_SB_NAME']} sub-basin."
)
# -> "Time-series for the Discharge (m³/s) at the <name> sub-basin."
"{len(subbasins)} sub-basins selected" # -> "3 sub-basins selected"
"mean = {max(scores['a']):0.2f}" # -> "mean = 12.34"
To add a code -> display mapping, just expose it as a parameter and reference
{table[code_param]['field']} — no derived params or manual watchers needed.
See DataPresentation.update_doc for the full reference.
Development
Run tests:
pytest
License
MIT
Metadata
Release files for holoviz-utils 0.6.4
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 |
|---|---|---|---|---|
| holoviz_utils-0.6.4.tar.gz | 851.2 kB | With provenance | Details for holoviz_utils-0.6.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| holoviz_utils-0.6.4-py3-none-any.whl | Python 3 | none | any | Details for holoviz_utils-0.6.4-py3-none-any.whl |
Total release size: 1.6 MB
Release files / holoviz_utils-0.6.4.tar.gz
| Download URL | holoviz_utils-0.6.4.tar.gz |
|---|---|
| Size | 851.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
571bc8b80d9c10a200a8fd26d81207f629c986c476c2c5908baad4ad907eb283
|
|
BLAKE2b-256 checksum How to use checksums |
629113ff651968fa687183c8088718d72c6332e8118ec50d77181cd33f8a52b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 31, 2026.
Transparency logRelease files / holoviz_utils-0.6.4-py3-none-any.whl
| Download URL | holoviz_utils-0.6.4-py3-none-any.whl |
|---|---|
| Size | 789.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6fa5afd0412c4fe4f3aaa837fde2381909c1a66502bb3e2f485bd35ef6fe6ad
|
|
BLAKE2b-256 checksum How to use checksums |
54d45f2851e47740cec76620f1d861ab6e62ed19d012d3401d1360d7bffe0462
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Jul 31, 2026.
Transparency logSecurity for holoviz-utils 0.6.4
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 holoviz_utils-0.6.4.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 Jul 31, 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.