Skip to main content

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

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for izaya 0.4.1
File Size Uploaded Provenance Actions
izaya-0.4.1.tar.gz 28.2 kB Without provenance Details for izaya-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for izaya 0.4.1
File Interpreter ABI Platform Actions
izaya-0.4.1-py3-none-any.whl Python 3 none any Details for izaya-0.4.1-py3-none-any.whl

Total release size: 57.9 kB

Release files / izaya-0.4.1.tar.gz

Download URL izaya-0.4.1.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1d42f4022e1d2e6c7db62fe22133541624f436360e98c670ccb9a3c45084886f
BLAKE2b-256 checksum
How to use checksums
b2f5233fe81ad60947fae241f2bfaeacfccd0389844976bb7bd46acab9796289
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.1-py3-none-any.whl

Download URL izaya-0.4.1-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14f21a03baa3f22af1b0ca3c5df0ec7877fba4e7e06ec501115052b38adef5bb
BLAKE2b-256 checksum
How to use checksums
329e5b5fa694ed7c908014f08fd871387b58f9c958707d20456ba6956c15d969
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.1

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.

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