Skip to main content

Generated Python client for the Sendmux Mailbox API.

Project description

sendmux-mailbox

PyPI version Python versions PyPI downloads Licence

Generated Python client for the Sendmux Mailbox API.

Documentation

Requirements

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

Installation

pip install sendmux-mailbox

Usage

import os

from sendmux_mailbox import MailboxAPIApi, create_mailbox_client

client = create_mailbox_client(api_key=os.environ["SENDMUX_MAILBOX_API_KEY"])
api = MailboxAPIApi(client)

messages = api.mailbox_list_messages(limit=25)

for message in messages.data:
    print(message.id, message.subject)

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

  • create_mailbox_client
  • configure_mailbox
  • SendmuxMailboxApiClient

Pagination

Use iter_cursor_pages from sendmux-core with list operations that return cursor pagination.

import os

from sendmux_core import iter_cursor_pages
from sendmux_mailbox import MailboxAPIApi, create_mailbox_client

client = create_mailbox_client(api_key=os.environ["SENDMUX_MAILBOX_API_KEY"])
api = MailboxAPIApi(client)

for message in iter_cursor_pages(lambda cursor: api.mailbox_list_messages(cursor=cursor, limit=50)):
    print(message.id)

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_mailbox-1.0.3.tar.gz (70.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_mailbox-1.0.3-py3-none-any.whl (227.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sendmux_mailbox-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c235ed71f1715c6fffd941f55979b7cf77197f877856bf05677a4f7f459d760e
MD5 18761b0609c3f60d52944dc77bb53631
BLAKE2b-256 1b53a6c5316e5c8e848bcde3f688b726a42e11897ff6e76a39df506dd4fccc07

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for sendmux_mailbox-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e21dd6fbfe3fc0558fdaa4476326c31080f850e86cf3256c003d60761e16fac6
MD5 2f973e7f2852f608a1b7e6981d9cb6bf
BLAKE2b-256 4ba347128b69415545fa457f1b36826afb797964aebdb6a8728c1eae0cccbeb5

See more details on using hashes here.

Provenance

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