Ship faster by sending elegant emails using just code
Project description
Templateless Python
What is Templateless?
Templateless lets you generate and send transactional emails quickly and easily so you can ship faster 🚀
✨ Features
- 👋 Anti drag-and-drop by design — emails are a part of your code
- ✅ Components as code — function calls turn into email HTML components
- 💻 SDK for any language — use your favorite programming language
- 🔍 Meticulously tested — let us worry about email client compatibility
- 💌 Use your favorite ESP — Amazon SES, SendGrid, Mailgun + more
- 💪 Email infrastructure — rate-limiting, retries, scheduling + more
- ⚡ Batch sending — send 1 email or 1,000 with one API call
🚀 Getting started
Install the package from PyPI, e. g. with pip:
pip install templateless
Import the Templateless
class from the templateless
package:
from templateless import Templateless
templateless = Templateless()
👩💻 Quick example
This is all it takes to send a signup confirmation email:
from templateless import Content, Email, EmailAddress, Templateless
def main():
content = (
Content()
.text("Hi, please **confirm your email**:")
.button("Confirm Email', 'https://your-company.com/signup/confirm?token=XYZ")
.build()
)
email = (
Email()
.to(EmailAddress("<YOUR_CUSTOMERS_EMAIL_ADDRESS>"))
.subject("Confirm your signup 👋")
.content(content)
.build()
)
templateless = Templateless("<YOUR_API_KEY>")
result = templateless.send(email)
print(result)
if __name__ == "__main__":
main()
Note:
- Get your free API key here: https://app.templateless.com ✨
- There are more Python examples in the examples folder
🤝 Contributing
- Contributions are more than welcome <3
- Please star this repo for more visibility ★
📫 Get in touch
-
For customer support feel free to email us at github@templateless.com
-
Have suggestions or want to give feedback? Here's how to reach us:
- For feature requests, please start a discussion
- Found a bug? Open an issue!
- We are also on Twitter: @Templateless
🍻 License
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
templateless-0.1.0a0.tar.gz
(14.2 kB
view hashes)
Built Distribution
Close
Hashes for templateless-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dcccfaf9783a4af48b7f9d1f5e5391b8d40d362c312f6fc640a4d9aaeac4162 |
|
MD5 | 0e4e55f4dd9ed1fb341b6538c6332074 |
|
BLAKE2b-256 | 6e568b7c7460a8b0608a392c552dfccb89438589d337d7caea8c2d6cfdad4f99 |