izaya
An htmx-powered autocomplete widget for Django forms. It works with any CSS framework, because it ships no required styles.
Setup
izaya needs Python 3.14+, Django 6.0+ and htmx 2. Install it with:
pip install izaya
Add izaya to INSTALLED_APPS, include its URLs, and load htmx and the form's media on the page:
# urls.py
(path("izaya/", include("izaya.urls")),)
<script src="{% static 'htmx.min.js' %}"></script>
{{ form.media }}
Usage
A lookup defines what a widget searches. Put lookups in a lookups.py module in your app, which
izaya imports on startup, and use them in a form:
from izaya import LookupWidget, ModelLookup, register
@register
class ArcLookup(ModelLookup):
model = Arc
search_fields = ["name__unaccent__icontains"]
class IssueForm(forms.ModelForm):
class Meta:
model = Issue
fields = ["arcs"]
widgets = {"arcs": LookupWidget(ArcLookup, multiple=True)}
Search endpoints are public by default, so restrict any lookup over private data. The documentation covers customizing lookups, ranking results, private data, styling and the API.
Example
example/ is a small Django project that uses the widget on every kind of field it
supports. Its README explains how to run it.
Development
uv sync
uv run pre-commit install
uv run pytest
uv run ruff check .
The browser tests in tests/test_browser.py need Firefox and are skipped without it. To build the
documentation:
uv run --group docs sphinx-build -W docs docs/_build/html
License
izaya is released under the GNU General Public License v3.0 or later. See LICENSE.
Metadata
Release files for izaya 0.4.0
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 |
|---|---|---|---|---|
| izaya-0.4.0.tar.gz | 26.9 kB | Without provenance | Details for izaya-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| izaya-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for izaya-0.4.0-py3-none-any.whl |
Total release size: 54.5 kB
Release files / izaya-0.4.0.tar.gz
| Download URL | izaya-0.4.0.tar.gz |
|---|---|
| Size | 26.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d56f9170d7d52743f91766f01ca6f8afd7219b360c0f46ee0fc0b6d4fe05767d
|
|
BLAKE2b-256 checksum How to use checksums |
e8a7e7842bf8d8a090c764d6cc71438171b13e6eee6da46c83ee8af696f834ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / izaya-0.4.0-py3-none-any.whl
| Download URL | izaya-0.4.0-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
199c363c9b7e0ab6a737b10c1913e39dbfa302a74c8ee536051ee153b50d3d4e
|
|
BLAKE2b-256 checksum How to use checksums |
3a2b812a7cb486f0e89ae0dafab7784020d43c8badf000f34f07087ea8c7b576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for izaya 0.4.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.