Skip to main content

wtforms-htmx

wtforms-htmx-components

Ready-made interactive WTForms fields built on wtforms-htmx.

Typing in a combobox shows suggestions. Picking one adds a chip.

Status: alpha, work in progress.

Each field packages a recipe of several triggers (typing, suggestions, pick, store, chip) into a single FormField declaration. Available now: the combobox, single and multi value, strict or with free-form values.

Installation

pip install wtforms-htmx-components

Example

from wtforms import SelectChoice
from wtforms import SubmitField
from wtforms_htmx import HtmxForm
from wtforms_htmx_components import ComboboxMultiField


def suggest(query, form):
    q = query.lower()
    return [SelectChoice(tag, tag) for tag in CATALOG if q in tag.lower()]


class TagsForm(HtmxForm):
    tags = ComboboxMultiField("Tags", suggest=suggest)
    save = SubmitField()

Keyboard navigation is optional. The npm package of the same name ships the script and its CSS:

npm install wtforms-htmx-components

See the combobox guide.

Run the example app:

uv sync --group example
uv run python -m examples

Then open http://127.0.0.1:5000/.

License

BSD-3-Clause. See LICENSE.rst.

Metadata

Release files for wtforms-htmx-components 0.3.0

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

Source distribution (sdist)

Source distribution for wtforms-htmx-components 0.3.0
File Size Uploaded Provenance Actions
wtforms_htmx_components-0.3.0.tar.gz 12.2 kB With provenance Details for wtforms_htmx_components-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wtforms-htmx-components 0.3.0
File Interpreter ABI Platform Actions
wtforms_htmx_components-0.3.0-py3-none-any.whl Python 3 none any Details for wtforms_htmx_components-0.3.0-py3-none-any.whl

Total release size: 23.9 kB

Release files / wtforms_htmx_components-0.3.0.tar.gz

Download URL wtforms_htmx_components-0.3.0.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3628625ed43c55dfd2d0a38a8e1262cb23eb618ec46201099e0a4faf212ce2b4
BLAKE2b-256 checksum
How to use checksums
37a4e8ecc8b978b58e7d788ed829f3af80ed6f3e831feb647a60b542bbfe02bb
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 Oct 28, 2026.

Transparency log

Release files / wtforms_htmx_components-0.3.0-py3-none-any.whl

Download URL wtforms_htmx_components-0.3.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47467e2c515c201a283c5bb19ce532499f806ed74583d6e9b86dd1a11e7db391
BLAKE2b-256 checksum
How to use checksums
5186a8c413594430b2466160892195423a2c9b0526c6c15f9ca7d160467fded5
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 Oct 28, 2026.

Transparency log

Security for wtforms-htmx-components 0.3.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wtforms_htmx_components-0.3.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 Oct 28, 2026.

Transparency log

A 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.

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