Skip to main content

Django Scaleway Email

A small Django package that allows you to use Scaleway's transactional email API.

Requirements

To use this backend, you need an account with Scaleway and follow their setup guide for the transactional email service.

You can then create an IAM Application and generate a new API key for it. Ensure the application has the TransactionalEmailEmailFullAccess permission.

Installation

  1. Install the package with your package manager of choice:

    pip install django-scaleway-email
    
  2. Set your EMAIL_BACKEND and configure your secrets:

    EMAIL_BACKEND = "django_scaleway_email.backend.EmailBackend"
    SCALEWAY_EMAIL_PROJECT_ID = "your-project-id"
    SCALEWAY_EMAIL_API_KEY = "your-api-key"
    
  3. Done! You can now use django.core.mail.send_mail etc. to send emails!

Django 6.1 MAILERS

Alternatively, this email backend supports Django's new MAILERS setting:

MAILERS = {
   "default": {
      "BACKEND": "django_scaleway_email.backend.EmailBackend",
      "OPTIONS": {
         "project_id": "YOUR_PROJECT_ID",
         "api_key": "YOUR_API_KEY",
         # optional:
         "region": "fr-par",
         "version": "v1alpha1",
         "api_url": "", # overwrite the full API endpoint
      },
   }
}

Limitations

Scaleway imposes a few limitations on emails. Here's a short summary:

  • Max. 10 recipients per email
  • Max. 10 attachments
  • Max. total email size is 2 MB
  • Only certain types of attachments are allowed, see ATTACHMENT_TYPES

Release files for django-scaleway-email 0.2.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-scaleway-email 0.2.0
File Size Uploaded
django_scaleway_email-0.2.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-scaleway-email 0.2.0
File Interpreter ABI Platform
django_scaleway_email-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / django_scaleway_email-0.2.0.tar.gz

Download URL django_scaleway_email-0.2.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
69610330ae9fefa0bd96fa06e1366d6831c8fbf2acf14181b296e65ad135c822
BLAKE2b-256 checksum
How to use checksums
2fd5fe2649cf2f9ee2238c328af7659d68c5ac50afa2310da90d5192dc4c2c79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.2 Linux/7.0.0-28-generic

Release files / django_scaleway_email-0.2.0-py3-none-any.whl

Download URL django_scaleway_email-0.2.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfb25b569ed9bfd565569047e09bfe5cb3fac53b46b947143162b5051f30fe5b
BLAKE2b-256 checksum
How to use checksums
a470256769c6e63d0fb16f1a74394d5e79e79f469bfa3656faf42fd4aa882027
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.2 Linux/7.0.0-28-generic

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

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