Skip to main content

django-htmx-tools

PyPI version Python versions Django versions License: MIT Documentation Status

An assortment of Django mixins and middleware for working with HTMX.

django-htmx-tools provides a collection of utilities to make it easier to build HTMX-powered Django applications. It includes middleware for proper caching and authentication handling, as well as mixins and decorators for protecting views.

Features

  • IsHtmxRequestMixin - Class-based view mixin for HTMX-only endpoints
  • htmx_only_request - Function decorator for HTMX-only views
  • is_htmx - Utility function to check if a request is from HTMX
  • htmx_vary_middleware - Proper caching headers for HTMX requests
  • htmx_auth_middleware - Authentication redirect handling for HTMX

References

Documentation

Please visit https://django-htmx-tools.readthedocs.io

Metadata

Release files for django-htmx-tools 1.0.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 django-htmx-tools 1.0.2
File Size Uploaded
django_htmx_tools-1.0.2.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-htmx-tools 1.0.2
File Interpreter ABI Platform
django_htmx_tools-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / django_htmx_tools-1.0.2.tar.gz

Download URL django_htmx_tools-1.0.2.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
888c49ad5bc40b945d14c7b64c263cb88f2043ede5de9ce13b1362adc36b7819
BLAKE2b-256 checksum
How to use checksums
297711ebacef5df796e74ed2f460d38191921095073bc78c8eaad969ddb3dd2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 31, 2025.

Transparency log

Release files / django_htmx_tools-1.0.2-py3-none-any.whl

Download URL django_htmx_tools-1.0.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6c993b71c1e4dd0ff421476d6b3e09406227f5e23b877ec1cb641eb5b787dab
BLAKE2b-256 checksum
How to use checksums
af72bf91095425d14a34baed5bc34cd7acfe6a0076bd771c64f975335586f2da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 31, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

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