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.4.tar.gz (2.5 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.4-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sendmux_sdk-1.0.4.tar.gz
  • Upload date:
  • Size: 2.5 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.4.tar.gz
Algorithm Hash digest
SHA256 44001aaa9d3a6afbf91c38c1c65cbaa1df9db554356a4d0a6753566fa52a3082
MD5 96a059d93d6a717491d66fff5db35f3e
BLAKE2b-256 8af26d9dae8fb859b27a5e9dae3ab8fb49b95dec3678867d60747950a7eb48f2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: sendmux_sdk-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a29ba7f42ddafaefac47f62654f4b60ceb2dfc636b192bbd9dab333d791c9a9b
MD5 ea93c5a259300a7b88f80e5dda89feb1
BLAKE2b-256 cfa24fb0259a499673397ff5f456954fb14ca12ae1c3f6597b40fcf1f778142f

See more details on using hashes here.

Provenance

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