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.2.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.2.0
File Size Uploaded Provenance Actions
wtforms_htmx_components-0.2.0.tar.gz 12.2 kB With provenance Details for wtforms_htmx_components-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 24.0 kB

Release files / wtforms_htmx_components-0.2.0.tar.gz

Download URL wtforms_htmx_components-0.2.0.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8246909e9c54a0c3b5ea786d5794688b71e19ee0cb1e7dbfdf0636c9613179f0
BLAKE2b-256 checksum
How to use checksums
055d14577afefa41b8f54980ed949305bd71e342d9348b2b7d8109bdb5f5abfd
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 27, 2026.

Transparency log

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

Download URL wtforms_htmx_components-0.2.0-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbf4b55e59c62b61be5577bf924bc64c1ef4404c4b1f176d6ed648721015fabf
BLAKE2b-256 checksum
How to use checksums
7bbee58e98291660327f4aae77246309f080c64b112cefc3c37bb3d48b7dbab5
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 27, 2026.

Transparency log

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

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

Select from 2 files

Attestation for wtforms_htmx_components-0.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 Oct 27, 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