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 send-capable smx_mbx_* key or owner-approved Sending-resource smx_agent_* token for Sending clients.
  • A mailbox-scoped smx_mbx_* key or scoped smx_agent_* token for 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.1.0.tar.gz (3.4 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.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sendmux_sdk-1.1.0.tar.gz
  • Upload date:
  • Size: 3.4 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.1.0.tar.gz
Algorithm Hash digest
SHA256 7ae376838d4e0dbca1c117200b2da5b47241a766f73979c28aa0f936950db7db
MD5 4df79affe66b774b4f17db039c75dda9
BLAKE2b-256 29e97b9892568c29f1bca5464712be7b83f21d56abb863ae4f801a7262540a61

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: sendmux_sdk-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7b5436e8832e2546edab34573a60e5b092b09e418e4cc9e2a6aac9d1c9f9760
MD5 5c26a1056a8462204e06c369830582ed
BLAKE2b-256 15b0f7131065e2a3bf2b006ac720357729e44676eee55bda719916ebf3a4b293

See more details on using hashes here.

Provenance

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