Skip to main content

python SDK for stampHQ email send APIs.

Project description

stampHQ-python SDK

This SDK lets you interact with stampHQ APIs with python. The SDK currently supports mail sending.

Install

pip install stamphq

Usage

You need a stamphq account. Signup for an account here to obtain an API key.

from stamphq.client import StampHQClient

# create the client
client = StampHQClient(api_key="<key obtained from dashboard>")

# send email with text and html parts
message_id = client.send_email(
    sender="catelyn@winterfell.com",
    to=["ned@winterfell.com"],
    subject="Regarding Jon Snow!",
    text_content="I know about Jon Snow Ned.",
    html_content="<html><body><p>I know about Jon Snow Ned. <i>And, be careful with Lannisters.</i></p></body></html>",
)
print(message_id) # prints the Message-ID for the email.

TODO

  • add template support

Support

please write to sdk@stamphq.app

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

stamphq-0.0.1.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

stamphq-0.0.1-py3-none-any.whl (7.9 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