Skip to main content

entirius-django-communicator

A Django module for channel-agnostic communication in Entirius, the open-source modular ecommerce platform. It drafts messages from versioned templates, puts them through review, sends them under a per-channel policy and reads the replies.

PyPI Python License: MPL-2.0

What it does

  • Renders messages from templates with versions, as static text or as an AI draft.
  • Holds drafts for review: accept, rewrite, edit or skip before anything is sent.
  • Sends under a per-channel policy: dry_run, sandbox or live mode, send windows, holidays and a daily cap.
  • Schedules follow-up sequences and stops them on a reply or an opt-out.
  • Polls IMAP mailboxes and turns inbound mail into replies, bounces, opt-outs and suppressions.
  • Exposes an admin API (JWT, Pydantic schemas, OpenAPI) for the CMS.

Installation

uv add entirius-django-communicator
pip install entirius-django-communicator

Optional extra: entirius-django-communicator[notifications] (AI toolbox failures raise a notification through entirius-django-notifications).

INSTALLED_APPS = [
    # ...
    "django_utils",
    "django_regional",
    "django_email",
    "django_communicator",
]

# main/urls.py
urlpatterns.append(path("", include("django_communicator.urls")))

The module needs Redis (COMMUNICATOR_REDIS_URL or REDIS_URL), a celery-once backend and Celery workers consuming the queues communicator_default, communicator_send and communicator_inbound. The COMMUNICATOR_* settings, the beat entries and the bootstrap order: docs/install.md — https://github.com/entirius/entirius-django-communicator/blob/develop/docs/install.md

Quick start

# main/urls.py
from django.urls import include, path

urlpatterns.append(path("", include("django_communicator.urls")))

The admin API is then mounted under api/communicator/v2/admin/<channel_idx>/. Settings, queues, beat and bootstrap order: docs/install.md. Other modules create messages through django_communicator.services.communicate_service.communicate; its contract is in https://github.com/entirius/entirius-django-communicator/blob/develop/docs/concept.md

Requirements

  • Python 3.11 or newer, Django 4.2 or newer.
  • PostgreSQL and Redis.
  • Celery workers consuming communicator_default, communicator_send and communicator_inbound, and Celery beat.
  • An AI toolbox service (the AI_TOOLBOX_* settings of entirius-django-utils) for AI drafts and rewrites.
  • Entirius packages pulled in: entirius-django-utils, entirius-django-regional, entirius-django-email, entirius-py-idx-normalizator.

Documentation

Part of Entirius

This module runs inside the Entirius backend service (Volkanos); the leads module drafts its outreach through it.

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-communicator/blob/develop/AGENTS.md

License

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

Metadata

Release files for entirius-django-communicator 0.5.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-communicator 0.5.0
File Size Uploaded Provenance Actions
entirius_django_communicator-0.5.0.tar.gz 387.6 kB Without provenance Details for entirius_django_communicator-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 626.2 kB

Release files / entirius_django_communicator-0.5.0.tar.gz

Download URL entirius_django_communicator-0.5.0.tar.gz
Size 387.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0440659790df1cbf0f00ede63055a68d4622d0f45d8ad3f94adf446b42d9804f
BLAKE2b-256 checksum
How to use checksums
7859ec233e868b7644af4c12881d002b589ffd39c7d3ceeaa7d61bf98946869b
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_communicator-0.5.0-py3-none-any.whl

Download URL entirius_django_communicator-0.5.0-py3-none-any.whl
Size 238.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fa02489b6f76357f4db733f6ad90160753bce791610e609baa0aa759e0095d3
BLAKE2b-256 checksum
How to use checksums
3560f8b127c819e696f7af28844340ca531c89c2af488c137305930ea8383739
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-communicator 0.5.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