OpenMail Python SDK
A lightweight, developer-friendly SDK for OpenMail.
Install
pip install openmail-sdk
Quick Start
from openmail import OpenMailClient
client = OpenMailClient(
api_key="your_api_key",
token_url="https://openmail.openproject.co.zw/r/your_token"
)
response = client.send_email(
to_email="user@example.com",
subject="Hello from OpenMail",
type="html",
body="<h1>Hello</h1><p>Welcome.</p>"
)
print(response)
Bulk Emails
You can send bulk emails in a single request. The SDK normalizes inputs (supporting either to or to_email, and body or html/text structures).
emails = [
{
"to_email": "user1@example.com",
"subject": "Hello User 1",
"html": "<h1>Welcome</h1><p>This is HTML content.</p>"
},
{
"to": "user2@example.com",
"subject": "Hello User 2",
"text": "This is plain text content."
}
]
# Can be a list of emails, or a dict structured as {"emails": [...]}
response = client.send_bulk_emails(emails)
print(response)
Core Inputs
api_keytoken_url
These are the only required values to initialize the SDK client.
Metadata
Release files for openmail-sdk 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openmail_sdk-1.1.0.tar.gz | 4.7 kB | Without provenance | Details for openmail_sdk-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openmail_sdk-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for openmail_sdk-1.1.0-py3-none-any.whl |
Total release size: 9.0 kB
Release files / openmail_sdk-1.1.0.tar.gz
| Download URL | openmail_sdk-1.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06b28e3a036e1918e914a47fa2985900d825821e8c18e06b17acf6b783ff3db8
|
|
BLAKE2b-256 checksum How to use checksums |
6c5ee9c6ff5936b48971f4aff4f8b76c0a6b561d7fad0eb8e88dfe35391146cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / openmail_sdk-1.1.0-py3-none-any.whl
| Download URL | openmail_sdk-1.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4b9a08365f6d24bf2f8c1e1cebea003ea21b1a17ed6f3f9538870edb8dd35f5
|
|
BLAKE2b-256 checksum How to use checksums |
791de0de3261351262a824667b0f8f29c47a03cbacdaaeaa6e6a3427e77e356f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for openmail-sdk 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.