Skip to main content

entirius-django-reviews

A Django module for product reviews and ratings in Entirius, the open-source modular ecommerce platform. It gives the storefront a REST API to submit and list reviews, lets staff moderate them, keeps an average rating per product, and can export reviews to Magento.

PyPI Python License: MPL-2.0

What it does

  • Accepts reviews with one or more rating criteria and lists them per sales channel.
  • Moderates reviews in the Django admin and over a key-protected API.
  • Recalculates the average rating and the number of reviews per product.
  • Imports reviews and ratings from CSV.
  • Exports reviews to Magento when the magento extra is installed.

Installation

uv add entirius-django-reviews
pip install entirius-django-reviews
INSTALLED_APPS = [
    ...
    "django_utils",
    "django_pim",
    "django_accounts",
    "django_reviews",
]

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

Required settings: BI_ENVIRONMENT and BI_BUSINESS_UNIT (read at import). Every other setting has a default; reference: https://github.com/entirius/entirius-django-reviews/blob/develop/AGENTS.md (section Settings).

The Magento export is an extra:

uv add "entirius-django-reviews[magento]"

Moderation calls send the key in the X-API-KEY header. Where django_access is installed the key is an access token with the scope reviews.moderate:

python manage.py access_token create --application reviews-moderation --create-application --scope reviews.moderate --channel default

Without django_access, python manage.py reviews-generate-api-key creates the key.

Quick start

from django_reviews.worker.manage_reviews import calculate_reviews

calculate_reviews()  # recalculate average ratings from the accepted reviews

Requirements

  • Python 3.11 or newer, Django 5.0 or newer.
  • Entirius packages pulled in: entirius-django-utils, entirius-django-pim, entirius-django-accounts, entirius-py-bievents, entirius-py-process-logger.

Documentation

Part of Entirius

This module runs inside the Entirius backend service (Volkanos), next to the product and customer account modules.

Development

make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest + pytest-django)

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

License

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

Metadata

Release files for entirius-django-reviews 3.0.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-reviews 3.0.1
File Size Uploaded Provenance Actions
entirius_django_reviews-3.0.1.tar.gz 244.3 kB Without provenance Details for entirius_django_reviews-3.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 284.7 kB

Release files / entirius_django_reviews-3.0.1.tar.gz

Download URL entirius_django_reviews-3.0.1.tar.gz
Size 244.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9215eec90bbeea7f9546e8ae6c674d7839bf8b48fb3d7640f9864ef9e6d38ff0
BLAKE2b-256 checksum
How to use checksums
16bb7202d283912d6a41c5b59b8e2c45fc5588e52bbd0b7fbb4c26c225e10102
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_reviews-3.0.1-py3-none-any.whl

Download URL entirius_django_reviews-3.0.1-py3-none-any.whl
Size 40.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca645eb1a40e1c7985348bdacae8e8ebc3f014917a9ed933690ed484d59f75a5
BLAKE2b-256 checksum
How to use checksums
f526482d956df1693ae78df58231ba8e60ecc86462d66e6d4eaa32b2d262da08
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-reviews 3.0.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