usesend Python SDK.
Installation
Install from PyPI:Initialize
Send an email
EmailCreate is a TypedDict for editor hints; at runtime you pass a regular dict. The client accepts from or from_ (it normalizes from_ to from).
X-Usesend-Email-ID and References headers are managed automatically.
Attachments and scheduling:
Batch send
Retrieve and manage emails
Get an email:Contacts
All contact operations require a contact book ID (book_id).
Create a contact:
Error handling
By default the client raisesUseSendHTTPError for non-2xx responses. To handle errors as return values, pass raise_on_error=False.