wtforms-htmx
Interactive WTForms forms declared in Python and powered by htmx, with no JavaScript to write, or even any htmx.
Here's (almost) everything wtforms-htmx adds on top of a regular form:
class PostForm(HtmxForm):
title = StringField().triggers("slug", slugify)
slug = StringField()
Features
- Declare interactivity in Python.
Right on the field declaration, not scattered across
hx-*attributes. - No extra endpoints. Interactions are handled by the form's existing view. You don't write a route for each one.
- Progressive enhancement. The form works without JavaScript; htmx layers live updates and partial swaps on top. Same form, two render paths.
- Opinionated defaults, fully overridable. wtforms-htmx renders
the right
hx-*for you, but they're yours to override. - Common patterns in a few lines. Inline validation and
FieldListadd/remove/reorder are built in. The examples show how to build autocomplete, comboboxes and dependent fields.
Full documentation: https://wtforms-htmx.readthedocs.io/
Example app
A runnable gallery of examples lives in examples/. The
documentation shows most of them with a
screencast. To run it locally:
uv sync --group example
uv run python -m examples
Then open http://127.0.0.1:5000/.
Metadata
Release files for wtforms-htmx 0.1.1
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 | |
|---|---|---|---|---|
| wtforms_htmx-0.1.1.tar.gz | 29.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wtforms_htmx-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.5 kB
Release files / wtforms_htmx-0.1.1.tar.gz
| Download URL | wtforms_htmx-0.1.1.tar.gz |
|---|---|
| Size | 29.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6dfd424e0a809461e9480934f464018664dacf8e6d75e8ef8930063e94a8a56f
|
|
BLAKE2b-256 checksum How to use checksums |
3384d078d501d66f4176a9f1c907ad548f4496b5f5cfd559225ee568fa7daaf9
|
| 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 24, 2026.
Transparency logRelease files / wtforms_htmx-0.1.1-py3-none-any.whl
| Download URL | wtforms_htmx-0.1.1-py3-none-any.whl |
|---|---|
| Size | 31.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39e97c49fef508ac9379c8e942e2d0dd46aafb1a91e212332d6470aeb0bb8622
|
|
BLAKE2b-256 checksum How to use checksums |
c68af19f44bc99cef4b72c09abd45cfdc84f56adc1fca8d943479ddd1b28a8c7
|
| 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 24, 2026.
Transparency logSecurity for wtforms-htmx 0.1.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for wtforms_htmx-0.1.1.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 24, 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.