Skip to main content

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

  1. Bump version in pyproject.toml (and this changelog) in the monorepo PR.
  2. Merge to main/master → GitHub Action syncs this folder to teamredevs/mailofly-python.
  3. 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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mailofly-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for mailofly-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eedc322192732d2fa3929f6d35eb94b9e88b01d0c2300337cb1790d7cf2ec473
MD5 c992907823a4e7a77ffd5df376ac7df7
BLAKE2b-256 a215876e9286e7021ff1f7d0c456d5a72608f8a91ed1d01810c7f60730c9ce1f

See more details on using hashes here.

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

Hashes for mailofly-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4527e95721f3835bed961192b3476925d7bf97e2165b652336bf4780592d4b0a
MD5 571f8a37e509128a295b9d537b1662cd
BLAKE2b-256 5832e3cf30e4a078b6823f8f30580325355852170e5a7afaec8ba419a547b4ea

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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