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.3.tar.gz (2.3 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.3-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sendmux_sdk-1.0.3.tar.gz
  • Upload date:
  • Size: 2.3 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.3.tar.gz
Algorithm Hash digest
SHA256 d11720dae3aea9ee17989f6a00396cc9e40e13443cdedf5104e29db6dc773c6a
MD5 256df925ee6a974390729318681245e4
BLAKE2b-256 309de16f679d6ae02f8cf99215d6008b9b24991567889b144ed2f09739427f08

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: sendmux_sdk-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 624ea0c832d8e6880ead0f8cf89cf7b968d8d9130d812a48b3868fb7b6e5e6d9
MD5 7b2f2c3fc17850d68b5d69256948f6e5
BLAKE2b-256 7ac53a17c1df20e70efa1d1300b6a03debc16c2d62cba06ab0ba347eed528913

See more details on using hashes here.

Provenance

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