Changelog

Python SDK Now Available

Published on:

With our new Python SDK you can integrate Lettermint into your applications and quickly get started sending transactional emails from your code. The SDK supports both synchronous and asynchronous requests and works with Python 3.9 and higher. Great for Django, FastAPI or other Python projects.

An example of sending an email with the Python SDK:

          from lettermint import Lettermint

client = Lettermint(api_token="your-api-token")

response = (
    client.email
    .from_("hello@yourdomain.com")
    .to("recipient@example.com")
    .subject("Hello from Python!")
    .html("<h1>Welcome!</h1>")
    .text("Welcome!")
    .send()
)

        

We have extensive documentation and examples available to help you integrate Lettermint into your Python application(s):

In addition to our existing integrations for Laravel, PHP, Node.js and Python, we are actively working on developing more integrations. Keep an eye on our integrations page for more information.