An assortment of Django mixins and middleware for working with HTMX
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_htmx_tools-1.0.2.tar.gz.
File metadata
- Download URL: django_htmx_tools-1.0.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
888c49ad5bc40b945d14c7b64c263cb88f2043ede5de9ce13b1362adc36b7819
|
|
| MD5 |
2449765500db5062520e058118f853eb
|
|
| BLAKE2b-256 |
297711ebacef5df796e74ed2f460d38191921095073bc78c8eaad969ddb3dd2b
|
Provenance
The following attestation bundles were made for django_htmx_tools-1.0.2.tar.gz:
Publisher:
publish.yml on howieweiner/django-htmx-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_htmx_tools-1.0.2.tar.gz -
Subject digest:
888c49ad5bc40b945d14c7b64c263cb88f2043ede5de9ce13b1362adc36b7819 - Sigstore transparency entry: 785638343
- Sigstore integration time:
-
Permalink:
howieweiner/django-htmx-tools@28a32594490986caaa1c535659cb9d36ba34c75a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/howieweiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@28a32594490986caaa1c535659cb9d36ba34c75a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file django_htmx_tools-1.0.2-py3-none-any.whl.
File metadata
- Download URL: django_htmx_tools-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6c993b71c1e4dd0ff421476d6b3e09406227f5e23b877ec1cb641eb5b787dab
|
|
| MD5 |
52be61f71315ed3202f0a7cd81bd8e54
|
|
| BLAKE2b-256 |
af72bf91095425d14a34baed5bc34cd7acfe6a0076bd771c64f975335586f2da
|
Provenance
The following attestation bundles were made for django_htmx_tools-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on howieweiner/django-htmx-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_htmx_tools-1.0.2-py3-none-any.whl -
Subject digest:
c6c993b71c1e4dd0ff421476d6b3e09406227f5e23b877ec1cb641eb5b787dab - Sigstore transparency entry: 785638423
- Sigstore integration time:
-
Permalink:
howieweiner/django-htmx-tools@28a32594490986caaa1c535659cb9d36ba34c75a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/howieweiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@28a32594490986caaa1c535659cb9d36ba34c75a -
Trigger Event:
workflow_dispatch
-
Statement type: