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
upload_test Uploads templates for testing purposes
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file amazon-ses-template-editor-0.4.3.tar.gz
.
File metadata
- Download URL: amazon-ses-template-editor-0.4.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 065e6a0144c330f104a9ba176ffc58d48dc3f215a1246c0907574027693fa737 |
|
MD5 | 4267d7ff403d88e9905c7a91608dcc52 |
|
BLAKE2b-256 | 7f57c7709eae20757e564c204315e4e35a60b6e8be6e897a2d7dd60d4e652e20 |
File details
Details for the file amazon_ses_template_editor-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: amazon_ses_template_editor-0.4.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dacab8fc9ea05a295da045c22689d7f60df2458631b16c2b4fc561a948c9dd05 |
|
MD5 | 05fb4b06563f8db06127d5eafa546c27 |
|
BLAKE2b-256 | 47345ac9264bb6eb1a306dd71b0fa9558a1c33741395cd4854a06ccf80791f29 |