Skip to main content

wtforms-htmx

wtforms-htmx

Interactive WTForms forms declared in Python and powered by htmx, with no JavaScript to write, or even any htmx.

Typing a title fills in its slug as you type.

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 FieldList add/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.3

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 0.1.3
File Size Uploaded Provenance Actions
wtforms_htmx-0.1.3.tar.gz 29.9 kB With provenance Details for wtforms_htmx-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 62.2 kB

Release files / wtforms_htmx-0.1.3.tar.gz

Download URL wtforms_htmx-0.1.3.tar.gz
Size 29.9 kB
Tags Source
SHA-256 checksum
How to use checksums
53fbc9104e84e957370ea8ed5c17bd11fb2e8ff33d9ba79d3a6447707eada07e
BLAKE2b-256 checksum
How to use checksums
eddcd592ee01d99a4e3bf09fa90a736196958f8eb3e418149a27712ca3b2b99e
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 25, 2026.

Transparency log

Release files / wtforms_htmx-0.1.3-py3-none-any.whl

Download URL wtforms_htmx-0.1.3-py3-none-any.whl
Size 32.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1654075563bf3f535567e5049995c2eaedfd7a471295ba9681c5dd4620e00a10
BLAKE2b-256 checksum
How to use checksums
ab3f5c87fa2250b08407242d0e68596e1bab140cd11412bd49cbac2bac35e8e4
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 25, 2026.

Transparency log

Security for wtforms-htmx 0.1.3

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-0.1.3.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 25, 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