Skip to main content

Django mails. Supercharged.

Project description

📨 Django mails. Supercharged.

PyPI - Version

Overview

django-nitro-mailer is a pluggable Django app that provides extra email reliability and observability in form of email backends that can be used with Django's built-in functions and other email backend.

django-nitro-mailer by itself does not provide a way to send emails, but it puts an extra layer before the email backend to provide extra features like:

  • priority queueing
  • retrying failed emails
  • logging and traces
  • email throttling
  • sending messages through the admin panel

Requirements

  • Python >=3.12, <3.15
  • Django >=5.2, <6.1

Installation

Install the package using pip:

$ pip install django-nitro-mailer

Usage

  1. Add django_nitro_mailer to your INSTALLED_APPS in your settings.py:
INSTALLED_APPS = [
    ...
    "django_nitro_mailer",
    ...
]
  1. Run python manage.py migrate to create the necessary tables.

  2. Change the EMAIL_BACKEND setting in your settings.py to use the desired backend:

  • Database Backend: Store emails in the database and send them asynchronously. Requires sending a cron job or some other scheduled task to send the emails.
EMAIL_BACKEND = "django_nitro_mailer.backends.DatabaseBackend"
  • Sync Backend: Send emails synchronously. Does not provide the reliability that the database backend provides, but still provides the logging and throttling features.
EMAIL_BACKEND = "django_nitro_mailer.backends.SyncBackend"

Documentation

Documentation is available here.

License

django-nitro-mailer is under the terms of the MIT License, following all clarifications stated in the license file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_nitro_mailer-0.2.1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_nitro_mailer-0.2.1-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file django_nitro_mailer-0.2.1.tar.gz.

File metadata

  • Download URL: django_nitro_mailer-0.2.1.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","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}

File hashes

Hashes for django_nitro_mailer-0.2.1.tar.gz
Algorithm Hash digest
SHA256 89dab0b4f5e7728f1ac2ad2164b4d228cb03a1728de02bd5193cf3d3aa6a1c84
MD5 44a183a2214bb523489f5df501731c99
BLAKE2b-256 7f425a4f29e37b86721b47105bfa3080bf18ec764f2a769122d1a308177ac031

See more details on using hashes here.

File details

Details for the file django_nitro_mailer-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: django_nitro_mailer-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","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}

File hashes

Hashes for django_nitro_mailer-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f515a9a634be4893df5cd0316e8a11d5df296cff915579e2ccd82d3ca983f226
MD5 79b5c806ae41912477f9574cfa4d0479
BLAKE2b-256 fe939855f6a8623ebd326cebb09640e058a2a0cb5b261110fb45129f51d0dd53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page