Skip to main content

Django Dramatiq Email

Email backend for Django sending emails via Dramatiq.

This package is tested up to Django 4.2.

Pipeline Status Code coverage Status Code style: black

Installation

To enable django-dramatiq-email, modify your project settings.py:

  • Add "django_dramatiq_email" to INSTALLED_APPS below "django_dramatiq",
  • Set EMAIL_BACKEND to "django_dramatiq_email.backends.DramatiqEmailBackend",
  • Set DRAMATIQ_EMAIL_BACKEND to the actual email backend you want to use (SMTP, Anymail, etc),
  • Optionally, add the DRAMATIQ_EMAIL_TASK_CONFIG dict as shown below.

Configuration

The dramatiq.actor args (reference, user guide) for send_email can be set via the DRAMATIQ_EMAIL_TASK_CONFIG dict in your settings.py.

The default args are here - most notably, the default queue_name is django_email.

Example configuration (using the Retry middleware):

DRAMATIQ_EMAIL_TASK_CONFIG = {
    "max_retries": 20,
    "min_backoff": 15000,
    "max_backoff": 86400000,
    "queue_name": "my_custom_queue"
}

Bulk emails

Bulk emails are send using individual Dramatiq tasks. Doing so these tasks can be restarted individually.

Maintainer

Tim Drijvers

Metadata

Release files for django-dramatiq-email 1.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-dramatiq-email 1.4.3
File Size Uploaded Provenance Actions
django_dramatiq_email-1.4.3.tar.gz 4.0 kB Without provenance Details for django_dramatiq_email-1.4.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-dramatiq-email 1.4.3
File Interpreter ABI Platform Actions
django_dramatiq_email-1.4.3-py3-none-any.whl Python 3 none any Details for django_dramatiq_email-1.4.3-py3-none-any.whl

Total release size: 9.2 kB

Release files / django_dramatiq_email-1.4.3.tar.gz

Download URL django_dramatiq_email-1.4.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f0b072947ee451c071e14533c2dc2ba2417626440703f0149a431aebf99464fe
BLAKE2b-256 checksum
How to use checksums
6e471db9e63eb7c0f5e3e72f0e9b695b597aea0379ef120011c7726c3490f3bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-44-generic

Release files / django_dramatiq_email-1.4.3-py3-none-any.whl

Download URL django_dramatiq_email-1.4.3-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e38bebf20e75bc28da4d93915cecc723f9783f9497402c87bc3f700e105e163
BLAKE2b-256 checksum
How to use checksums
2cd7a5cbf4842d725997f4e96ebbf30ba8320f453835760883ef8081945142ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-44-generic

Security for django-dramatiq-email 1.4.3

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