entirius-django-lookup
A Django module for product lookup and deduplication in Entirius, the open-source modular ecommerce platform.
It answers "do we already have this?" across the catalog and supplier feeds, by identifier, text or image, and
explains every match, review or no_match verdict with its reasons.
What it does
- Builds a fingerprint of every product a registered provider exposes: normalized GTIN, brand, part number, name.
- Finds candidates by exact identifiers, trigram and word similarity, perceptual image hash and image embeddings.
- Scores each candidate pair level by level and returns the reasons next to the score.
- Serves two admin endpoints:
/search/(ranked candidates, nothing written) and/check/(a verdict per candidate, logged as a decision). - Ships commands for backfill, reconciliation, a health check of the image layer and calibration.
Installation
uv add entirius-django-lookup
pip install entirius-django-lookup
INSTALLED_APPS = [
...
"django.contrib.postgres",
"django_utils",
"django_lookup",
]
# urls.py
urlpatterns = [
path("", include("django_lookup.urls")),
]
Settings (LOOKUP_*), the embedding backend, the Celery queue and the bootstrap order are described in
https://github.com/entirius/entirius-django-lookup/blob/develop/docs/install.md; the settings block to copy is
https://github.com/entirius/entirius-django-lookup/blob/develop/docs/settings_example.py
Quick start
from django_lookup.schemas.requests.lookup import LookupQuery
from django_lookup.services import lookup_service
result = lookup_service.search(LookupQuery(q="Bosch GSR 12V-15", limit=10))
for hit in result.hits:
print(hit)
The same search over HTTP is POST /api/lookup/v2/admin/search/.
Requirements
- Python 3.12 or newer, Django 5.0 or newer.
- PostgreSQL with the
vector,pg_trgmandunaccentextensions available (the migrations create them). - A Celery worker consuming the
lookupqueue. - Entirius packages pulled in:
entirius-django-utils.
Documentation
- Install (prerequisites, settings, bootstrap order, sizing): https://github.com/entirius/entirius-django-lookup/blob/develop/docs/install.md
- Image embedding backend: https://github.com/entirius/entirius-django-lookup/blob/develop/docs/embedding.md
- Admin API (
/search/and/check/): https://github.com/entirius/entirius-django-lookup/blob/develop/docs/api.md - Operations (commands, Celery, degradation, tuning, calibration): https://github.com/entirius/entirius-django-lookup/blob/develop/docs/operations.md
- Concept (why a weight, flag or threshold is what it is): https://github.com/entirius/entirius-django-lookup/blob/develop/docs/concept.md
- Gotchas: https://github.com/entirius/entirius-django-lookup/blob/develop/docs/gotchas.md
- Test suite map: https://github.com/entirius/entirius-django-lookup/blob/develop/docs/testing.md
- Entirius documentation: https://docs.entirius.com/
- Changelog: https://github.com/entirius/entirius-django-lookup/blob/develop/CHANGELOG.md
Part of Entirius
This module runs inside the Entirius backend service (Volkanos); the catalog and the external product data engine register as its providers.
- Backend service: https://github.com/entirius/entirius-service-volkanos
- Docker harness: https://github.com/entirius/entirius-zeno
- Sibling modules: https://github.com/entirius/entirius-django-pim, https://github.com/entirius/entirius-django-atlas, https://github.com/entirius/entirius-django-enrichment
Development
make install # sync dependencies (uv, incl. extras)
make check # lint + format check (ruff)
make test # test suite (pytest against PostgreSQL; DATABASE_URL or LOOKUP_TEST_DB_*, see tests/settings.py)
Development and agent instructions: https://github.com/entirius/entirius-django-lookup/blob/develop/AGENTS.md
License
Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-lookup/blob/develop/LICENSE.
Metadata
Release files for entirius-django-lookup 0.4.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 |
|---|---|---|---|---|
| entirius_django_lookup-0.4.2.tar.gz | 219.0 kB | Without provenance | Details for entirius_django_lookup-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entirius_django_lookup-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for entirius_django_lookup-0.4.2-py3-none-any.whl |
Total release size: 315.0 kB
Release files / entirius_django_lookup-0.4.2.tar.gz
| Download URL | entirius_django_lookup-0.4.2.tar.gz |
|---|---|
| Size | 219.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a41fffbeec0bfcf32763826c0186d18f9fe85c200208ad7e158476447bb1b226
|
|
BLAKE2b-256 checksum How to use checksums |
6cd3262f583f1b4999806d39ba5a875c1d1316a7db16fd5a968a265b1596610c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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 / entirius_django_lookup-0.4.2-py3-none-any.whl
| Download URL | entirius_django_lookup-0.4.2-py3-none-any.whl |
|---|---|
| Size | 96.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72c26dcee6601f1f03159dff272f38e645766986219621cea00bee19247c8e99
|
|
BLAKE2b-256 checksum How to use checksums |
bd65cf537e78d3f49fa048a3e3415eacdbe5d81b75089a6eaeb7a2afd50c1055
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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 entirius-django-lookup 0.4.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.
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.