Skip to main content

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.

PyPI Python License: MPL-2.0

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_trgm and unaccent extensions available (the migrations create them).
  • A Celery worker consuming the lookup queue.
  • Entirius packages pulled in: entirius-django-utils.

Documentation

Part of Entirius

This module runs inside the Entirius backend service (Volkanos); the catalog and the external product data engine register as its providers.

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.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 entirius-django-lookup 0.4.1
File Size Uploaded Provenance Actions
entirius_django_lookup-0.4.1.tar.gz 218.5 kB Without provenance Details for entirius_django_lookup-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 314.4 kB

Release files / entirius_django_lookup-0.4.1.tar.gz

Download URL entirius_django_lookup-0.4.1.tar.gz
Size 218.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5f51269656fa3010e1376f857896604517c3172483cdf7143a7752559b2b8f5b
BLAKE2b-256 checksum
How to use checksums
255390ff85f82949301cdebf9ba2573966e70df958d69af6b07afdb9cd700cfb
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 / entirius_django_lookup-0.4.1-py3-none-any.whl

Download URL entirius_django_lookup-0.4.1-py3-none-any.whl
Size 95.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9752f02393c0ce69bf59b3be63a05e6349238451362e2789367946ec7d9e5cfe
BLAKE2b-256 checksum
How to use checksums
c87fc25eff6a9d937bba0d2c840cf3e11e70b0a0dc655bebad8bba6bcbe9c29f
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 entirius-django-lookup 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