Generated Python client for the Sendmux Mailbox API.
Project description
sendmux-mailbox
Generated Python client for the Sendmux Mailbox API.
Documentation
- Mailbox API reference: sendmux.ai/docs/mailbox-api/introduction
- Source repository: Sendmux/sendmux-sdk
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_clientconfigure_mailboxSendmuxMailboxApiClient
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c235ed71f1715c6fffd941f55979b7cf77197f877856bf05677a4f7f459d760e
|
|
| MD5 |
18761b0609c3f60d52944dc77bb53631
|
|
| BLAKE2b-256 |
1b53a6c5316e5c8e848bcde3f688b726a42e11897ff6e76a39df506dd4fccc07
|
Provenance
The following attestation bundles were made for sendmux_mailbox-1.0.3.tar.gz:
Publisher:
release-please.yml on Sendmux/sendmux-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sendmux_mailbox-1.0.3.tar.gz -
Subject digest:
c235ed71f1715c6fffd941f55979b7cf77197f877856bf05677a4f7f459d760e - Sigstore transparency entry: 1859545130
- Sigstore integration time:
-
Permalink:
Sendmux/sendmux-sdk@9a63e5fde5fdc18f8b1dfa63870b8efb3cae8211 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Sendmux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@9a63e5fde5fdc18f8b1dfa63870b8efb3cae8211 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e21dd6fbfe3fc0558fdaa4476326c31080f850e86cf3256c003d60761e16fac6
|
|
| MD5 |
2f973e7f2852f608a1b7e6981d9cb6bf
|
|
| BLAKE2b-256 |
4ba347128b69415545fa457f1b36826afb797964aebdb6a8728c1eae0cccbeb5
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sendmux_mailbox-1.0.3-py3-none-any.whl -
Subject digest:
e21dd6fbfe3fc0558fdaa4476326c31080f850e86cf3256c003d60761e16fac6 - Sigstore transparency entry: 1859545188
- Sigstore integration time:
-
Permalink:
Sendmux/sendmux-sdk@9a63e5fde5fdc18f8b1dfa63870b8efb3cae8211 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Sendmux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@9a63e5fde5fdc18f8b1dfa63870b8efb3cae8211 -
Trigger Event:
push
-
Statement type: