entirius-django-notifications
A Django module for staff notifications in Entirius, the open-source modular ecommerce platform. It shows in-app notifications in the CMS and escalates them to email and Google Chat when nobody reads them.
What it does
- Creates in-app notifications with a severity and a subject reference through one function,
notify(). - Counts repeats of an unread notification inside a dedup window instead of creating new rows.
- Escalates unread notifications along per-channel rules to email and Google Chat, each step once.
- Keeps real sends behind a gate outside production (
NOTIFICATIONS_ALLOW_LIVE_SENDS). - Exposes an admin API (JWT, Pydantic schemas, OpenAPI) for the CMS notification bar.
Installation
uv add entirius-django-notifications
pip install entirius-django-notifications
Optional extras: entirius-django-notifications[email] (the email step, through entirius-django-email),
entirius-django-notifications[googlechat] (the Google Chat step, through entirius-py-googlechat).
Without an extra its step is recorded as skipped. The email step also needs django_email in INSTALLED_APPS.
INSTALLED_APPS = [
# ...
"django_utils",
"django_regional",
"django_notifications",
]
# main/urls.py
urlpatterns.append(path("", include("django_notifications.urls")))
The module needs a Celery worker consuming the notifications_default queue and the escalation beat entry.
Settings (NOTIFICATIONS_DEDUP_WINDOW_S, NOTIFICATIONS_DELIVERY_STALE_MINUTES,
NOTIFICATIONS_QUEUE_DEFAULT, NOTIFICATIONS_ALLOW_LIVE_SENDS) and the bootstrap order: docs/install.md —
https://github.com/entirius/entirius-django-notifications/blob/develop/docs/install.md
Quick start
from django_notifications.services.notify_service import notify
notify(
channel_idx="my-channel",
recipient_role="sales",
severity="high", # a value of django_notifications.enums.Severity
subject_ref="leads.Company:42",
title="A reply needs an answer",
)
The notification appears in the CMS bar at once; escalation follows the rules of the channel.
Requirements
- Python 3.11 or newer, Django 4.2 or newer.
- PostgreSQL.
- A Celery worker consuming the
notifications_defaultqueue, and Celery beat. - Entirius packages pulled in:
entirius-django-utils,entirius-django-regional,entirius-py-idx-normalizator.
Documentation
- Module docs: https://github.com/entirius/entirius-django-notifications/tree/develop/docs
- Entirius documentation: https://docs.entirius.com/
- Changelog: https://github.com/entirius/entirius-django-notifications/blob/develop/CHANGELOG.md
Part of Entirius
This module runs inside the Entirius backend service (Volkanos); other modules call notify() when a person must act.
- 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-communicator, https://github.com/entirius/entirius-django-leads, https://github.com/entirius/entirius-django-email
Development
make install # sync dependencies (uv, incl. extras)
make check # lint + format check (ruff)
make test # test suite (pytest; PostgreSQL through DATABASE_URL)
Development and agent instructions: https://github.com/entirius/entirius-django-notifications/blob/develop/AGENTS.md
License
Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-notifications/blob/develop/LICENSE.
Metadata
Release files for entirius-django-notifications 0.3.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_notifications-0.3.0.tar.gz | 99.4 kB | Without provenance | Details for entirius_django_notifications-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entirius_django_notifications-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for entirius_django_notifications-0.3.0-py3-none-any.whl |
Total release size: 137.8 kB
Release files / entirius_django_notifications-0.3.0.tar.gz
| Download URL | entirius_django_notifications-0.3.0.tar.gz |
|---|---|
| Size | 99.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be641b9bbecb711ba648714bfd05f21a700dc275ac333349a4ba6d025f68b2f1
|
|
BLAKE2b-256 checksum How to use checksums |
726c2b36bcc9d19848fca61584117d92a70baa46603269a0ab9948ae996b1e0c
|
| 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_notifications-0.3.0-py3-none-any.whl
| Download URL | entirius_django_notifications-0.3.0-py3-none-any.whl |
|---|---|
| Size | 38.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3cab88077ba4c35308674cd69c4998df060bcb942ed20aebd6c3585c237bdff1
|
|
BLAKE2b-256 checksum How to use checksums |
914e2d6c2724f4a8f28b619d0a6b3bc27eea502af983be18dbd81381a37f0a54
|
| 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-notifications 0.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.