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

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.3.0
File Size Uploaded Provenance Actions
entirius_django_enrichment-2.3.0.tar.gz 427.7 kB Without provenance Details for entirius_django_enrichment-2.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 709.2 kB

Release files / entirius_django_enrichment-2.3.0.tar.gz

Download URL entirius_django_enrichment-2.3.0.tar.gz
Size 427.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bebeeb9fd36ff760c8a904a2702b02d23be6936029cbd40e231f16621bf07d91
BLAKE2b-256 checksum
How to use checksums
8baf92fe136ffd70a08a9700b6a5b188cc64210f1cf5a5e2337f7511ffa6772d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.3.0-py3-none-any.whl

Download URL entirius_django_enrichment-2.3.0-py3-none-any.whl
Size 281.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fde2870a62be73acac9450ae863d7d7d420fd7761a7e1854c7999dd84e51f698
BLAKE2b-256 checksum
How to use checksums
10c2bb456f6b63d3ed4286268769ec8b8ee73cd74a571df6732df26977cc6e0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.3.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.

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