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.4.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-communicator 0.4.1
File Size Uploaded Provenance Actions
entirius_django_communicator-0.4.1.tar.gz 237.1 kB Without provenance Details for entirius_django_communicator-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 383.7 kB

Release files / entirius_django_communicator-0.4.1.tar.gz

Download URL entirius_django_communicator-0.4.1.tar.gz
Size 237.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5dc4040b57892f125c769038f0c5f6bf8368574cfdd01af1fc3a3191b52c413d
BLAKE2b-256 checksum
How to use checksums
b63cced1c8b51e99eaafe6aaaa65873b3edd3f5d234d3705c13f2b6d3afee9aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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_communicator-0.4.1-py3-none-any.whl

Download URL entirius_django_communicator-0.4.1-py3-none-any.whl
Size 146.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4ad1dc5c643ade18366f756373a3ae73328d66793d29ead22e654fb6692d104
BLAKE2b-256 checksum
How to use checksums
f8f8a686b4d81df9a3e4b54fca8ef16b7cd9aaeed8a8f873e64f8ca4d4af71af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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-communicator 0.4.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