Skip to main content

Generated Python client for the Sendmux Management API.

Project description

sendmux-management

PyPI version Python versions PyPI downloads Licence

Generated Python client for the Sendmux Management API.

Documentation

Requirements

  • Python 3.10 or newer.
  • A root Sendmux API key with the smx_root_* prefix.

Installation

pip install sendmux-management

Usage

import os

from sendmux_management import DomainsApi, create_management_client

client = create_management_client(api_key=os.environ["SENDMUX_MANAGEMENT_API_KEY"])
api = DomainsApi(client)

domains = api.management_list_domains(limit=25)

for domain in domains.data:
    print(domain.id, domain.domain)

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

  • create_management_client
  • configure_management
  • SendmuxManagementApiClient

Conditional requests

Generated methods expose ETag parameters directly when the API operation supports them.

import os

from sendmux_management import DomainsApi, create_management_client

client = create_management_client(api_key=os.environ["SENDMUX_MANAGEMENT_API_KEY"])
api = DomainsApi(client)

domain = api.management_get_domain(
    public_id="mdom_123",
    if_none_match='W/"etag"',
)

print(domain.data)

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_management-1.1.0.tar.gz (75.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sendmux_management-1.1.0-py3-none-any.whl (237.4 kB view details)

Uploaded Python 3

File details

Details for the file sendmux_management-1.1.0.tar.gz.

File metadata

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

File hashes

Hashes for sendmux_management-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4cde28ddd06c2a4761aae5bfe7681c11f6c1180a3d6ab41a3dfb8ef9b3b6b144
MD5 0c443e883fd098241b77552dbd584080
BLAKE2b-256 703cac1b32d3b1c242f50b113222336bd6316c375ba62a40a3a17a0eb5fc8b43

See more details on using hashes here.

Provenance

The following attestation bundles were made for sendmux_management-1.1.0.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_management-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sendmux_management-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b16e7e758c3e3dda1d30630d8cb559ddc4cb75b92cdc9c78566832375fda2d5
MD5 f59cba0dc70aa727170ac09d433d9a35
BLAKE2b-256 e5abe365101ca6a4512e6f2863ef42e80fc67ba6536ff6a3d830128253f4f3db

See more details on using hashes here.

Provenance

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