sendmux-core
Shared runtime helpers for the Sendmux Python SDK packages.
Documentation
- Sendmux docs: sendmux.ai/docs
- Source repository: Sendmux/sendmux-sdk
Requirements
- Python 3.10 or newer.
- A surface package such as
sendmux-sending,sendmux-mailbox, orsendmux-managementfor API operations.
Installation
pip install sendmux-core
Usage
Validate an API key prefix and prepare request headers before calling a surface package.
import os
from sendmux_core import conditional_headers, idempotency_headers, validate_api_key
validate_api_key(os.environ["SENDMUX_MAILBOX_API_KEY"], surface="mailbox")
headers = {
**idempotency_headers("idem_123"),
**conditional_headers(if_none_match='W/"etag"'),
}
Helpers
validate_api_keycheckssmx_root_*prefixes for root clients, send-capablesmx_mbx_*prefixes or owner-approved Sending-resourcesmx_agent_*tokens for Sending clients, and mailbox-compatiblesmx_mbx_*orsmx_agent_*prefixes for Mailbox clients.configure_authapplies API-key bearer auth to generated client configuration objects. Surface factories also acceptaccess_tokenas a bare token or callable; do not set both credential options.idempotency_headersandconditional_headersprepare request headers.iter_cursor_pagesiterates cursor-paginated list responses.RetryOptionsconfigures retry behaviour for generated clients. A single retry layer honoursretryable: false, server retry delays and the total retry deadline.SendmuxApiErrornormalises API errors and request IDs.
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.
Metadata
Release files for sendmux-core 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sendmux_core-1.3.0.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sendmux_core-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / sendmux_core-1.3.0.tar.gz
| Download URL | sendmux_core-1.3.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2ce210c56fde7c6949fce1221f46c9ab8c652bd6c1ae6757b5c722d6b744772
|
|
BLAKE2b-256 checksum How to use checksums |
a9f4fa6b4e1e7ac6dbc6e32cb804604cc0720b4c553e66f40528a9493f4bd665
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.
Transparency logRelease files / sendmux_core-1.3.0-py3-none-any.whl
| Download URL | sendmux_core-1.3.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e150063c3f4fccaf86b5441d657e8d6ce82ffdba08e53b45a508d6e6c4aec98d
|
|
BLAKE2b-256 checksum How to use checksums |
d25c823e9de836009fcd79df84ad13643f6d16b99be7b756e7567ddf8eb3bf7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.
Transparency log