django-htmx-tools
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_htmx_tools-1.0.2.tar.gz | 8.8 kB | With provenance | Details for django_htmx_tools-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_htmx_tools-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for django_htmx_tools-1.0.2-py3-none-any.whl |
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 logRelease 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 logSecurity for django-htmx-tools 1.0.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
Both files in this release have been uploaded with provenance metadata.
Attestation for django_htmx_tools-1.0.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 Dec 31, 2025.
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.