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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stamphq-0.0.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file stamphq-0.0.1.tar.gz.

File metadata

  • Download URL: stamphq-0.0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for stamphq-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e6183e7cf40cc962f612868c7d27a268fb6469e1a6f966368cec6a92e655b0df
MD5 616fd441c55894fa9983d0b4721c7760
BLAKE2b-256 15c27fc69084448277b829150159f22a83353995f2f16cefab842588a240c758

See more details on using hashes here.

File details

Details for the file stamphq-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: stamphq-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for stamphq-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f49ed5c2aa84ff41a71fb5eb51c20a0efce7a0bdc17f1594500952eba801ad97
MD5 4b90096e2b336c78ec075f409fb86d0d
BLAKE2b-256 be40952c5879a98e3937a449db4968c9d58d8d7a5d4c11180930d2404a90c256

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page