Skip to main content

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@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), 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.

Metadata

Release files for mailkite 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mailkite 0.2.0
File Size Uploaded Provenance Actions
mailkite-0.2.0.tar.gz 5.7 kB With provenance Details for mailkite-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mailkite 0.2.0
File Interpreter ABI Platform Actions
mailkite-0.2.0-py3-none-any.whl Python 3 none any Details for mailkite-0.2.0-py3-none-any.whl

Total release size: 9.5 kB

Release files / mailkite-0.2.0.tar.gz

Download URL mailkite-0.2.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e00e2f6208281e738e03b5b1fbb1611a473e19b7064fd74375d3376f86f2fd9c
BLAKE2b-256 checksum
How to use checksums
3bbad9767a6b8367de18753edff4c7f8d43ffbbb559aad985084525bdc4bf54e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 23, 2026.

Transparency log

Release files / mailkite-0.2.0-py3-none-any.whl

Download URL mailkite-0.2.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98d95972177382eb910f2941162b3a6cf279ead0682ac112fa454422d05e21ff
BLAKE2b-256 checksum
How to use checksums
575bff93a42041c712cb9dd40322827d1408f16ee3c2e3794878486d1d0acbde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 23, 2026.

Transparency log

Security for mailkite 0.2.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mailkite-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 23, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page