Python SDK
The official Render25 Python client. Supports Python 3.8 and above, with full type annotations via typing.
Installation
bash
pip install render25Or with Poetry:
bash
poetry add render25Basic Usage
send_email.py
import os
from render25 import Render25
client = Render25(api_key=os.environ["RENDER25_API_KEY"])
result = client.email.send(
from_address="[email protected]",
to="[email protected]",
subject="Welcome to Render25",
html="<p>Your account is ready.</p>",
text="Your account is ready.",
)
print(result.id) # msg_01J3K9X7YDBTKMR5N...Note
Store your API key in an environment variable. Never hardcode credentials in source files or commit them to version control.
Async Support
async_send.py
import asyncio
from render25 import AsyncRender25
async def main():
client = AsyncRender25(api_key="YOUR_API_KEY")
result = await client.email.send(
from_address="[email protected]",
to="[email protected]",
subject="Hello",
html="<p>Sent async!</p>",
)
print(result.id)
asyncio.run(main())