Skip to main content

Generated Python client for the Sendmux Sending API.

Project description

sendmux-sending

PyPI version Python versions PyPI downloads Licence

Generated Python client for the Sendmux Sending API.

Documentation

Requirements

  • Python 3.10 or newer.
  • A mailbox-scoped Sendmux API key with the smx_mbx_* prefix.

Installation

pip install sendmux-sending

Usage

import os

from sendmux_sending import Address, EmailSendRequest, EmailsApi, create_sending_client

client = create_sending_client(api_key=os.environ["SENDMUX_SENDING_API_KEY"])
api = EmailsApi(client)

response = api.sending_send_email(
    EmailSendRequest(
        var_from=Address(email="sender@example.com"),
        to=Address(email="recipient@example.com"),
        subject="Hello from Sendmux",
        html_body="<p>Hello.</p>",
        text_body="Hello.",
    ),
    idempotency_key="email_123",
)

print(response.data.message_id)

The package exports every generated Sending model and API class plus:

  • create_sending_client
  • configure_sending
  • SendmuxSendingApiClient

Request helpers

Use sendmux-core when you need explicit idempotency, conditional request, pagination, retry, or typed-error helpers. The generated Sending client already uses the shared retry and error mapper.

Support

Open an issue in Sendmux/sendmux-sdk with the package name, version, and request ID from any API error.

Licence

MIT. See the licence file.

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

sendmux_sending-1.0.4.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

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

sendmux_sending-1.0.4-py3-none-any.whl (52.1 kB view details)

Uploaded Python 3

File details

Details for the file sendmux_sending-1.0.4.tar.gz.

File metadata

  • Download URL: sendmux_sending-1.0.4.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for sendmux_sending-1.0.4.tar.gz
Algorithm Hash digest
SHA256 322209f743d374a994b7dd912b0000fdcd07f68f1f339d0c943b8c1da08e3a07
MD5 17c47254edcc75e2bf02f1ecb0d8608f
BLAKE2b-256 913c21207fc3d9c6d47e6e4a1e852814d7cba47371246983cc9a9dbc73ca71ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for sendmux_sending-1.0.4.tar.gz:

Publisher: release-please.yml on Sendmux/sendmux-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sendmux_sending-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: sendmux_sending-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 52.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for sendmux_sending-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dbe225dd99ebd600cbb6a46e527355b860304c47b116038c0bf3689c1de23ec8
MD5 1814af02b83e31241d04f2d439c704d9
BLAKE2b-256 4b6667b2e8a70e8c4906d8d32823f31694be568db40860521376f00975b989da

See more details on using hashes here.

Provenance

The following attestation bundles were made for sendmux_sending-1.0.4-py3-none-any.whl:

Publisher: release-please.yml on Sendmux/sendmux-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page