Official MailKite SDK for Python — send and manage email over your own authenticated domain.
Project description
MailKite for Python
Official MailKite SDK. One low-level request() plus one
method per endpoint. Zero dependencies — standard library only. Python 3.7+.
Install
pip install mailkite
Usage
import os
from mailkite import MailKite
mk = MailKite(os.environ["MAILKITE_API_KEY"])
res = mk.send({
"from": "hello@yourapp.mailkite.dev",
"to": "ada@example.com",
"subject": "Your invoice #1042",
"html": "<p>Thanks! Receipt attached.</p>",
})
Point at a different base URL with MailKite(key, "https://api.mailkite.dev").
Methods
send(message), listDomains(), createDomain({"domain": ...}),
getDomain(id), deleteDomain(id), verifyDomain(id),
setWebhook(id, {"url": ...}), deleteWebhook(id), testWebhook(id),
listRoutes(), createRoute({...}), listMessages(), getMessage(id),
retryDelivery(id).
Errors
from mailkite import MailKiteError
try:
mk.send(msg)
except MailKiteError as e:
print(e.status, e.message)
See the full docs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mailkite-0.1.0.tar.gz.
File metadata
- Download URL: mailkite-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15a667a4191691406638b425a196e05fcaca7b1e9a10c36566061024de8d22a5
|
|
| MD5 |
2808aac6cf52698d32da41f9fd3f1902
|
|
| BLAKE2b-256 |
3f53c19f69361f4aa92a4dff7c665c64646a3fe1039d4d3783d05f58f3c7160f
|
Provenance
The following attestation bundles were made for mailkite-0.1.0.tar.gz:
Publisher:
publish-python.yml on fijiwebdesign/mailkite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mailkite-0.1.0.tar.gz -
Subject digest:
15a667a4191691406638b425a196e05fcaca7b1e9a10c36566061024de8d22a5 - Sigstore transparency entry: 1912182167
- Sigstore integration time:
-
Permalink:
fijiwebdesign/mailkite@e65847fb2b8bef550e51b96193e966fad976da91 -
Branch / Tag:
refs/tags/py-v0.1.0 - Owner: https://github.com/fijiwebdesign
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@e65847fb2b8bef550e51b96193e966fad976da91 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mailkite-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mailkite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caa917b4d18da66df0eeeb45dc7df47619634866d1b3d168922e04e85694a6e3
|
|
| MD5 |
d2225693a17bcc22e1a665f43a600881
|
|
| BLAKE2b-256 |
c11dff4d95aac0d46d4885a689a4b225d59b381eabeac145b1fc42bf3b2edf3c
|
Provenance
The following attestation bundles were made for mailkite-0.1.0-py3-none-any.whl:
Publisher:
publish-python.yml on fijiwebdesign/mailkite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mailkite-0.1.0-py3-none-any.whl -
Subject digest:
caa917b4d18da66df0eeeb45dc7df47619634866d1b3d168922e04e85694a6e3 - Sigstore transparency entry: 1912182550
- Sigstore integration time:
-
Permalink:
fijiwebdesign/mailkite@e65847fb2b8bef550e51b96193e966fad976da91 -
Branch / Tag:
refs/tags/py-v0.1.0 - Owner: https://github.com/fijiwebdesign
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@e65847fb2b8bef550e51b96193e966fad976da91 -
Trigger Event:
push
-
Statement type: