Skip to main content

anywidget-bundle

anywidget-bundle loads a manifest-backed Vite build into an anywidget model. It embeds the lean bootstrap in _esm, resolves optional CSS, and serves allowlisted JavaScript chunks from the consumer wheel.

uv add anywidget-bundle
from pathlib import Path

from anywidget_bundle import Bundle, BundledWidget


class WeatherWidget(BundledWidget):
    bundle = Bundle(Path(__file__).parent / "static")

Package the complete generated static directory with the widget. It contains anywidget.json, the bootstrap, and every module Python may serve.

Use the anywidget-bundle Hatch build hook to validate that directory during packaging. Observe widget.bundle_status for browser loading and lifecycle failures, including errors raised before the application loads.

See the documentation for the build and Python APIs.

Metadata

Release files for anywidget-bundle 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anywidget-bundle 0.1.1
File Size Uploaded
anywidget_bundle-0.1.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anywidget-bundle 0.1.1
File Interpreter ABI Platform
anywidget_bundle-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / anywidget_bundle-0.1.1.tar.gz

Download URL anywidget_bundle-0.1.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
186dbdf694da0429cc989cd51408fe43e896f73ef6f9665a183caf1924380df6
BLAKE2b-256 checksum
How to use checksums
1af591dc12039712a63a7937e9fcf79c200776781a42d1718dbcadb40f78e7eb
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 Sep 15, 2026.

Transparency log

Release files / anywidget_bundle-0.1.1-py3-none-any.whl

Download URL anywidget_bundle-0.1.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2e46d31cc2c69e9d6abb9efe6bbd4884c901280bb0b1e75cdcb79f8941ca237
BLAKE2b-256 checksum
How to use checksums
3d97b061e70494f85a2f92becf3e820d4087c22cf8a77b5cad6626bf56292c97
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 Sep 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page