Skip to main content

Umbrella package for the Sendmux Python SDK.

Project description

sendmux-sdk

PyPI version Python versions PyPI downloads Licence

Optional umbrella package for the Sendmux Python SDK.

Documentation

Requirements

  • Python 3.10 or newer.
  • A mailbox-scoped smx_mbx_* key for Sending and Mailbox clients.
  • A root smx_root_* key for Management clients.

Installation

pip install sendmux-sdk

Usage

import os

from sendmux_sdk import sending

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

response = api.sending_send_email(
    sending.EmailSendRequest(
        var_from=sending.Address(email="sender@example.com"),
        to=sending.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 umbrella package lazy-loads:

  • core from sendmux_core
  • sending from sendmux_sending
  • mailbox from sendmux_mailbox
  • management from sendmux_management

Use the per-surface packages directly when an integration only needs one API surface.

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_sdk-1.0.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

sendmux_sdk-1.0.2-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file sendmux_sdk-1.0.2.tar.gz.

File metadata

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

File hashes

Hashes for sendmux_sdk-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0f832c4da1cc54f389f524959a8f03db51990a3a46c1d49e40c6a469263ada86
MD5 6f07ddcc09642dfe0df0de962326b73f
BLAKE2b-256 8f4b22a1371943f8a068fa214f3ff8e1c5903d65c50eab71eb2f206867a26458

See more details on using hashes here.

Provenance

The following attestation bundles were made for sendmux_sdk-1.0.2.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_sdk-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: sendmux_sdk-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.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_sdk-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37e42bd424fc7454972cf8885d17087f4888e5ddbd8a1731cd99282c02d6fa40
MD5 8daffb9926a56445936413675c6202e9
BLAKE2b-256 8edb39b3d8187a6ebb2aefbb9691e05840c8e384c46e55ae673ad6c350eeeec1

See more details on using hashes here.

Provenance

The following attestation bundles were made for sendmux_sdk-1.0.2-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