Skip to main content

Currently only supports failed step functions. This is half-baked so far

Usage

# settings.py

INSTALLED_APPS = [
  "django_serverless_emailer",
  # ...
]

AWS_REGION = "us-west-2"  # your region

DEFAULT_FROM_EMAIL = "an-email@email.com"  # your sender
EMAIL_HOST = "smtp.gmail.com"  # your host
EMAIL_PORT = 465  # your port
EMAIL_HOST_USER = "an-email@email.com"  # your user
EMAIL_HOST_PASSWORD = os.getenv["EMAIL_PASSWORD"]
EMAIL_USE_SSL = True  # if you're using SSL

EMAIL_RECEPIENTS = "a@b.com,c@d.com"  # comma delimited list or a plain list
# serverless.yml

functions:
  notify:
    handler: path/to/handler.send_email
    description: Send an email
    layers:
      - { Ref: PythonRequirementsLambdaLayer }
# handler.py

import django
import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "setup.settings")
django.setup()

from django_serverless_emailer import notify


def send_email(event, _):
    notify(event, _)

Metadata

Release files for django-serverless-emailer 0.3.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-serverless-emailer 0.3.0
File Size Uploaded Provenance Actions
django-serverless-emailer-0.3.0.tar.gz 3.0 kB Without provenance Details for django-serverless-emailer-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-serverless-emailer 0.3.0
File Interpreter ABI Platform Actions
django_serverless_emailer-0.3.0-py3-none-any.whl Python 3 none any Details for django_serverless_emailer-0.3.0-py3-none-any.whl

Total release size: 6.6 kB

Release files / django-serverless-emailer-0.3.0.tar.gz

Download URL django-serverless-emailer-0.3.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2524052659b61b92f3fca55cab897b06a50cea11f3acd556dd555d6499c92f4e
BLAKE2b-256 checksum
How to use checksums
a27bad82f5872d864f1519470abea8fb714fd56f97620a1f06bf7f21da968fc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.7 Windows/10

Release files / django_serverless_emailer-0.3.0-py3-none-any.whl

Download URL django_serverless_emailer-0.3.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f021bc406f8dc6918a4a69d6a90078b41bd3d2882cde0b66b2a02782778cbddb
BLAKE2b-256 checksum
How to use checksums
7e1e081dfe46e98fd1b8d94d1d81c07da8909f16844e1c1723999bd5a7f640e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.7 Windows/10

Security for django-serverless-emailer 0.3.0

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