Skip to main content

Created by Jan Dittberner

Introduction

django-gnupg-mails provides a class gnupg_mails.message.GnuPGMessage that extends Django’s django.core.mail.EmailMessage with the functionality to send PGP/MIME signed emails.

Dependencies

  • gnupg is required for signing the mails

Installation

The easiest way to install django-gnupg-mails is directly from PyPI using pip by running the command below:

$ pip install -U django-gnupg-mails

Otherwise you can download django-gnupg-mails and install it directly from source:

$ python setup.py install

Usage

Define settings.GNUPG_HOMEDIR to point to a GnuPG home directory containing a private key with signing capabilities.

Instead of using Django’s EmailMessage you can just use gnupg_mails.message.GnuPGMessage. The class is a drop-in replacement and can used in the same way as the original class as documented in The Django documentation.

Similar packages

You may want to have a look at django-email-extras by Stephen McDonald for other GnuPG related functionality. Stephen’s package allows sending PGP encrypted mail and provides a nice email test backend.

Metadata

Release files for django-gnupg-mails 0.4.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 django-gnupg-mails 0.4.0
File Size Uploaded
django-gnupg-mails-0.4.0.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-gnupg-mails 0.4.0
File Interpreter ABI Platform
django_gnupg_mails-0.4.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 22.5 kB

Release files / django-gnupg-mails-0.4.0.tar.gz

Download URL django-gnupg-mails-0.4.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e8ce537d47f34a7f4ce371bd4db64e9e425bec88f5731d2683048a79099b201b
BLAKE2b-256 checksum
How to use checksums
ae444178951941b4b781b9cc86888dde2b5e3348eeb8021056f61a16989575d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

Release files / django_gnupg_mails-0.4.0-py2.py3-none-any.whl

Download URL django_gnupg_mails-0.4.0-py2.py3-none-any.whl
Size 12.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
44cf2da13440f8fa4ef742da91ad8f2cb0f237bbcf602af3c4f17a1689f2cd52
BLAKE2b-256 checksum
How to use checksums
51e05d39d53c3c3881dfd70945b7ad3e9d039c4bf9414a791bd6e76a0c6fdf97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2

2 release files

0.1

2 release files

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