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.
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
enrichmentqueue (bulk apply, undo, retention, scheduled spawn rules). - Entirius packages pulled in:
entirius-django-utils. Adapters live in the source modules; the catalog adapter ships withentirius-django-pimand is loaded lazily, so this module never imports it.
Documentation
- Overview: https://github.com/entirius/entirius-django-enrichment/blob/develop/docs/index.md
- Data model: https://github.com/entirius/entirius-django-enrichment/blob/develop/docs/data-model.md
- Admin API: https://github.com/entirius/entirius-django-enrichment/blob/develop/docs/api.md
- Service contracts: https://github.com/entirius/entirius-django-enrichment/blob/develop/docs/services.md
- Adapter guide: https://github.com/entirius/entirius-django-enrichment/blob/develop/docs/adapter-guide.md
- Media proposals: https://github.com/entirius/entirius-django-enrichment/blob/develop/docs/media.md
- Scale, undo and retention: https://github.com/entirius/entirius-django-enrichment/blob/develop/docs/scale-and-undo.md
- Spawn rules: https://github.com/entirius/entirius-django-enrichment/blob/develop/docs/spawn-rules.md
- Spawn surfaces: https://github.com/entirius/entirius-django-enrichment/blob/develop/docs/spawn-surfaces.md
- Management commands: https://github.com/entirius/entirius-django-enrichment/blob/develop/docs/commands.md
- Testing: https://github.com/entirius/entirius-django-enrichment/blob/develop/docs/testing.md
- Entirius documentation: https://docs.entirius.com/
- Changelog: https://github.com/entirius/entirius-django-enrichment/blob/develop/CHANGELOG.md
Part of Entirius
This module runs inside the Entirius backend service (Volkanos) and improves the content other modules own.
- 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-lookup
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.4.0
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_enrichment-2.4.0.tar.gz | 447.3 kB | Without provenance | Details for entirius_django_enrichment-2.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entirius_django_enrichment-2.4.0-py3-none-any.whl | Python 3 | none | any | Details for entirius_django_enrichment-2.4.0-py3-none-any.whl |
Total release size: 743.9 kB
Release files / entirius_django_enrichment-2.4.0.tar.gz
| Download URL | entirius_django_enrichment-2.4.0.tar.gz |
|---|---|
| Size | 447.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1e8c6c6c5d25ee42f2a56f2efbf2482fefba72826222b2b0ca91dc50b73a436
|
|
BLAKE2b-256 checksum How to use checksums |
047714618c25f1dc88bf28773122781f686fb891b11a14409409d42fc9e6e13f
|
| 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_enrichment-2.4.0-py3-none-any.whl
| Download URL | entirius_django_enrichment-2.4.0-py3-none-any.whl |
|---|---|
| Size | 296.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88a008bc5f30c5775804aaaca0b5e774f264856b4faea76f45649e59acb20dec
|
|
BLAKE2b-256 checksum How to use checksums |
6e62dcd03dcb0398a9bcc65b59615bc04502c3b0c84c9a9bdd2a375b206d50e4
|
| 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-enrichment 2.4.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.