Skip to main content

entirius-django-enrichment

A Django module for reviewed content enrichment in Entirius, the open-source modular ecommerce platform. It runs an accept-before-write loop for product content (descriptions, attributes, SEO, media): typed tasks are spawned, an external worker returns proposals, an operator reviews them, and only accepted proposals are written back to the source module through an adapter.

PyPI Python License: MPL-2.0

What it does

  • Spawns enrichment tasks over a scope of products: a list, a filter, a CSV file or a quality gap.
  • Takes proposals from an external worker, one per field, with idempotent intake and staged media files.
  • Offers a review queue with single and bulk accept and reject; a value that changed since the proposal was made is never overwritten without a second confirmation.
  • Writes accepted proposals through a per-module adapter and supports a single-level undo.
  • Runs spawn rules on a schedule and prunes finished work after a retention window.
  • Exposes an admin API (JWT, Pydantic schemas, OpenAPI) for the CMS and the worker.

Installation

uv add entirius-django-enrichment
pip install entirius-django-enrichment

Optional extras: entirius-django-enrichment[demo] (Pillow, for the seed_demo_proposals command).

INSTALLED_APPS = [
    ...
    "django_utils",
    "django_enrichment",
]

# urls.py
urlpatterns = [
    path("", include("django_enrichment.urls")),
]

# adapters of the source modules in use
ENRICHMENT_ADAPTERS = {"pim": "django_pim.services.enrichment_adapter"}

ENRICHMENT_ADAPTERS is the one setting a working installation needs; the other ENRICHMENT_* settings are listed with their defaults in https://github.com/entirius/entirius-django-enrichment/blob/develop/AGENTS.md (section Settings).

Quick start

from django_enrichment.services import task_service

task = task_service.spawn(
    type="translate",
    scope_spec={"mode": "list", "module": "pim", "refs": ["SKU-1", "SKU-2"]},
    params={"language": "de"},
)

The worker then pulls the task and posts proposals to api/enrichment/v2/admin/proposals/.

Requirements

  • Python 3.11 or newer, Django 5.0 or newer.
  • A Celery worker consuming the enrichment queue (bulk apply, undo, retention, scheduled spawn rules).
  • Entirius packages pulled in: entirius-django-utils. Adapters live in the source modules; the catalog adapter ships with entirius-django-pim and is loaded lazily, so this module never imports it.

Documentation

Part of Entirius

This module runs inside the Entirius backend service (Volkanos) and improves the content other modules own.

Development

make install     # sync dependencies (uv, incl. extras)
make check       # lint + format check (ruff)
make test        # test suite (pytest + pytest-django, sqlite in memory)

Development and agent instructions: https://github.com/entirius/entirius-django-enrichment/blob/develop/AGENTS.md

License

Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-enrichment/blob/develop/LICENSE.

Metadata

Release files for entirius-django-enrichment 2.5.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-enrichment 2.5.1
File Size Uploaded Provenance Actions
entirius_django_enrichment-2.5.1.tar.gz 464.4 kB Without provenance Details for entirius_django_enrichment-2.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 772.3 kB

Release files / entirius_django_enrichment-2.5.1.tar.gz

Download URL entirius_django_enrichment-2.5.1.tar.gz
Size 464.4 kB
Tags Source
SHA-256 checksum
How to use checksums
db0efa8cadc67aba9d91a4c811ee3866b6d761fa7791e7bfc36d4d845d5d92a2
BLAKE2b-256 checksum
How to use checksums
765edc847c279b6157d77bd046aa1cae75b92bc3a4aae5b3b7b0fe2a49a17bc6
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_enrichment-2.5.1-py3-none-any.whl

Download URL entirius_django_enrichment-2.5.1-py3-none-any.whl
Size 307.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
241b147de457d34830b2e6e13f0577097e32c1647011915ed8ce50d88c5d02f4
BLAKE2b-256 checksum
How to use checksums
a5261dd13f2919644f8824291d668e4e157f9bfaef7ee6ca289dd188a22de2c5
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-enrichment 2.5.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