Skip to main content

A tool for editing, uploading and testing Amazon SES email templates

Project description

amazon-ses-template-editor

Console command to edit, test and upload amazon SES templates

Currently AWS SES has API endpoint to create email templates with handlebars syntax and API endpoint to send emails with template name and a dictionary with template variables. But it does not provide any UI to create and edit templates. This script allows you to manage your email templates from command line

Installation

pip install amazon-ses-template-editor

Usage

usage: amazon-ses-template-editor.py [-h] [-c CONFIG]
                                     {upload,test,preview} ...

positional arguments:
  {upload,test,preview}
    upload              Uploads templates from configuration file to SES using
                        your system credentials
    test                Sends emails to your email address so you can test
                        layout
    preview             Starts minimal http server for email template testing

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        Path to configuration file, default ./config.toml

Config example

[[templates]]
name = 'weekly-email'
html = "templates/weekly-email.hb2"
title = 'Your links weekly report'

[[templates]]
name = 'confirmation-email'
html = "templates/confirmation-email.hb2"
title = 'Please verify your email'

[partials]
footer = 'partials/footer.hb2'

[tests]
from = 'andrii@short.cm'
to = ['andrey@kostenko.name', 'someone_else@short.cm'
[[test]]
template = 'weekly-email'
    [test.data]
        encodedEmail = 'andrey@kostenko.name'
        [test.data.user]
        id = 12345
        name = 'Test test'
        [[test.data.domains]]
            [test.data.domains.domain]
            hostname = 'test.com'
            [test.data.domains.stats]
            links = 50
            clicks = 50
            humanClicks = 50
            [[test.data.domains.stats.device]]
            deviceName = "Desktop"
            score = 12345

Author

Andrii Kostenko, Short.cm Inc (https://short.cm)

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

amazon-ses-template-editor-0.4.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file amazon-ses-template-editor-0.4.2.tar.gz.

File metadata

File hashes

Hashes for amazon-ses-template-editor-0.4.2.tar.gz
Algorithm Hash digest
SHA256 f5593cb56431a5f87e7aaf3eade77cf47fb50752e0b852872784879823d4aa3d
MD5 2042f3850413f8a493697c2433e87300
BLAKE2b-256 9e229208465eed7ec02d3329fa4d1e6995963f85131f099fc7bfd2e5da785fb8

See more details on using hashes here.

File details

Details for the file amazon_ses_template_editor-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for amazon_ses_template_editor-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 82282c982da8455b1ad8b50f814d3337da2092fe690149aa3fcd4f6e5c3f8583
MD5 55a2537f4ac5d3d5954cebcd2327756b
BLAKE2b-256 75edc862c367860d9f80d2f52bf8b563f7119f5261672f4491040219caacdb75

See more details on using hashes here.

Supported by

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