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
-
Install the package with your package manager of choice:
pip install django-scaleway-email
-
Set your
EMAIL_BACKENDand configure your secrets:EMAIL_BACKEND = "django_scaleway_email.backend.EmailBackend" SCALEWAY_EMAIL_PROJECT_ID = "your-project-id" SCALEWAY_EMAIL_API_KEY = "your-api-key"
-
Done! You can now use
django.core.mail.send_mailetc. 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)
| File | Size | Uploaded | |
|---|---|---|---|
| django_scaleway_email-0.2.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|