Skip to main content

Ship faster by sending elegant emails using just code

Project description

Templateless

Ship faster by treating email as code 🚀

WebsiteGet Your API KeyTwitter


PyPI package Github Actions Downloads X (formerly Twitter) Follow

Templateless lets you generate and send transactional emails quickly and easily so you can focus on building your product.

✨ 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 🚧 This SDK is not stable yet. The API might change as more features are added. Please pay attention to the CHANGELOG for breaking changes.

Examples:

  1. Get your free API key here: https://app.templateless.com
  2. 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

🍻 License

MIT

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

templateless-0.1.0a1.tar.gz (19.1 kB view hashes)

Uploaded Source

Built Distribution

templateless-0.1.0a1-py3-none-any.whl (11.3 kB view hashes)

Uploaded Python 3

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