Shared runtime helpers for the Sendmux Python SDK packages.
Project description
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 and mailbox-compatiblesmx_mbx_*orsmx_agent_*prefixes for mailbox clients.configure_authapplies bearer auth to generated client configuration objects.idempotency_headersandconditional_headersprepare request headers.iter_cursor_pagesiterates cursor-paginated list responses.RetryOptionsconfigures retry behaviour for generated clients.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.
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_core-1.1.3.tar.gz.
File metadata
- Download URL: sendmux_core-1.1.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f06e9efbf92fee14c0ca9b43bcb0921c18b45b540635c55cfe3ad94485a9a34
|
|
| MD5 |
32613eab5ab1c1643de40d15f7fe504a
|
|
| BLAKE2b-256 |
ce08a76688c1c27baa4fbcef245ab0ab07607b072e437c6cf1cdb4e8eb3a897f
|
Provenance
The following attestation bundles were made for sendmux_core-1.1.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_core-1.1.3.tar.gz -
Subject digest:
9f06e9efbf92fee14c0ca9b43bcb0921c18b45b540635c55cfe3ad94485a9a34 - Sigstore transparency entry: 1866113341
- Sigstore integration time:
-
Permalink:
Sendmux/sendmux-sdk@6b25cce75f9f4ece5ce2d916cf4d87f779b257ac -
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@6b25cce75f9f4ece5ce2d916cf4d87f779b257ac -
Trigger Event:
push
-
Statement type:
File details
Details for the file sendmux_core-1.1.3-py3-none-any.whl.
File metadata
- Download URL: sendmux_core-1.1.3-py3-none-any.whl
- Upload date:
- Size: 6.0 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 |
35278bb4b43023ed12ab2f8073f922a884ae27923a40bd921c5105f826b82e64
|
|
| MD5 |
3ec51f6112acdc019dff5f3b19812017
|
|
| BLAKE2b-256 |
5b3b0fa332d0b7c3d607662ae9e68fb640ead9728ee8dbcfa70e89c88006a7ad
|
Provenance
The following attestation bundles were made for sendmux_core-1.1.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_core-1.1.3-py3-none-any.whl -
Subject digest:
35278bb4b43023ed12ab2f8073f922a884ae27923a40bd921c5105f826b82e64 - Sigstore transparency entry: 1866113462
- Sigstore integration time:
-
Permalink:
Sendmux/sendmux-sdk@6b25cce75f9f4ece5ce2d916cf4d87f779b257ac -
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@6b25cce75f9f4ece5ce2d916cf4d87f779b257ac -
Trigger Event:
push
-
Statement type: