axene-mailer (Python)
Official Python client for Axene Mailer. Send receipts, confirmations, and campaigns from your own domain, priced in KES, billed via M-Pesa.
Pure standard library: no runtime dependencies. Python 3.8+.
Install
pip install axene-mailer
Usage
from axene_mailer import Axene
axene = Axene(api_key="axm_k_your_api_key")
res = axene.emails.send({
"from": {"email": "hello@yourdomain.com", "name": "Your Shop"},
"to": "customer@example.com",
"subject": "Your receipt",
"html": "<p>Thanks for your order.</p>",
"text": "Thanks for your order.",
})
print("queued", res["id"])
from, to, cc, bcc accept a string, a {"email", "name"} dict, or a list of either.
More
axene.emails.send_batch([{...}, {...}]) # bare array under the hood
axene.emails.get(res["id"]) # status
axene.emails.validate({...}) # dry-run: would this send?
axene.domains.list() # your sending domains
# Scheduling (Starter plan and up)
from datetime import datetime, timedelta, timezone
axene.emails.send({..., "send_at": datetime.now(timezone.utc) + timedelta(hours=1)})
Errors and retries
Non-2xx responses raise AxeneError (.status, .code, .args[0] message).
The client retries 429 and 5xx with exponential backoff (configurable via
max_retries).
Get an API key at mail.axene.io. Docs: https://axene.io/docs/mailer/getting-started/welcome.
MIT (c) Axene Solutions
Metadata
Release files for axene-mailer 0.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 | |
|---|---|---|---|
| axene_mailer-0.1.0.tar.gz | 11.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| axene_mailer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / axene_mailer-0.1.0.tar.gz
| Download URL | axene_mailer-0.1.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc75b9771d3a658026d90965202b905a09f2e7e9f2ac2255883a25594bc8e25f
|
|
BLAKE2b-256 checksum How to use checksums |
3783eb28d79d75c3eb70088a8aa19d9f7386b68e156f9213976437b27e91e5f5
|
| 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 13, 2026.
Transparency logRelease files / axene_mailer-0.1.0-py3-none-any.whl
| Download URL | axene_mailer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89cc9e7c2098575539181cf58c6e90091707f16f2ec3b74ac65d3fa5f24b474a
|
|
BLAKE2b-256 checksum How to use checksums |
23ac723d034b2a8884af5d8553a6bb5dcea6292dcbfff59dc3dcc8837b12eb7b
|
| 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 13, 2026.
Transparency log