mailofly
Official Python client for the Mailofly REST API.
Requires Python 3.9+.
Source of truth: developed in the mailofly monorepo under
packages/python. This public repo is mirrored automatically on change.
Install
pip install mailofly
Usage
import os
from mailofly import Mailofly, MailoflyError
client = Mailofly(os.environ["MAILOFLY_API_KEY"])
try:
result = client.compose.send({
"account_key": "acc_…",
"subject": "Hello",
"body": "<p>Hi from Mailofly</p>",
"recipients": {"emails": ["you@example.com"]},
})
print(result)
except MailoflyError as e:
print(e.status, e.error, e.detail_message)
Docs
Releasing
- Bump
versioninpyproject.toml(and this changelog) in the monorepo PR. - Merge to
main/master→ GitHub Action syncs this folder toteamredevs/mailofly-python. - Publish workflow runs and publishes to PyPI only when the version is new.
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mailofly-0.1.0.tar.gz
(4.7 kB
view details)
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 mailofly-0.1.0.tar.gz.
File metadata
- Download URL: mailofly-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eedc322192732d2fa3929f6d35eb94b9e88b01d0c2300337cb1790d7cf2ec473
|
|
| MD5 |
c992907823a4e7a77ffd5df376ac7df7
|
|
| BLAKE2b-256 |
a215876e9286e7021ff1f7d0c456d5a72608f8a91ed1d01810c7f60730c9ce1f
|
File details
Details for the file mailofly-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mailofly-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4527e95721f3835bed961192b3476925d7bf97e2165b652336bf4780592d4b0a
|
|
| MD5 |
571f8a37e509128a295b9d537b1662cd
|
|
| BLAKE2b-256 |
5832e3cf30e4a078b6823f8f30580325355852170e5a7afaec8ba419a547b4ea
|