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

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.2
File Size Uploaded Provenance
wtforms_htmx-0.1.2.tar.gz 29.6 kB With provenance Details

Built distribution (wheel)

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

Total release size: 61.5 kB

Release files / wtforms_htmx-0.1.2.tar.gz

Download URL wtforms_htmx-0.1.2.tar.gz
Size 29.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2b652a3adf50fa0bd15fbd366d7a51e1cfba38a361c697b51ec16f8146c00144
BLAKE2b-256 checksum
How to use checksums
1ebfec21dd7f1ea5da7dd75456fdc8664d98f2dd382a3f3bc1912d0063242e31
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 log

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

Download URL wtforms_htmx-0.1.2-py3-none-any.whl
Size 31.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c30b7cdd50a4c070668ff9acac21f13a628886af12e77bbac8ca26ddab49974
BLAKE2b-256 checksum
How to use checksums
ec590c973bfebc389413d5ff4102044607aa5a44b93638c324e99fdb63ca38f1
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 log

Security for wtforms-htmx 0.1.2

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.

Select from 2 files

Attestation for wtforms_htmx-0.1.2.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 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