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-dev
Published as
mailkite-devfor now (themailkitename is being reclaimed). The import is unchanged —from mailkite import MailKite.
Usage
import os
from mailkite import MailKite
mk = MailKite(os.environ["MAILKITE_API_KEY"])
res = mk.send({
"from": "hello@myapp.ai",
"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), agent(message), route(message), listDomains(), createDomain({"domain": ...}),
getDomain(id), deleteDomain(id), verifyDomain(id),
setWebhook(id, {"url": ...}), deleteWebhook(id), testWebhook(id),
checkDomainAvailability(domain), registerDomain({"domain": ..., "contact": {...}}),
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
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_dev-0.8.0.tar.gz.
File metadata
- Download URL: mailkite_dev-0.8.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d2bc8b8625ea74996d7be3da7e41cdca6a663b876d786a6c1c2b1991b9cd831
|
|
| MD5 |
52acc2bdd703aecfe7cb64f0d3db6bbc
|
|
| BLAKE2b-256 |
e46a0c459e91d78f9b4c46b3f960b217af18db496ed5ba5514d68cfca63e0a44
|
File details
Details for the file mailkite_dev-0.8.0-py3-none-any.whl.
File metadata
- Download URL: mailkite_dev-0.8.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3770bc2cdea13985c0b9f15357aeee6d30dfc8f6d2734da8c062333273c6a4cf
|
|
| MD5 |
ed5cb6d7dabebfab8560b59a871b2f40
|
|
| BLAKE2b-256 |
a4eb5931fc63cd1eb472359c2fc550c2236501b2c8bbe9dc75cd7ed42c04fd77
|