sendix-python
Official Python SDK for SendIX — Email infrastructure for developers.
Installation
pip install sendix-python
Quick Start
from sendix import SendIX
client = SendIX('sk_live_your_api_key')
# Send a single email
result = client.emails.send({
'to': 'user@example.com',
'subject': 'Hello from SendIX',
'html': '<p>Hello world</p>',
})
# Send with template variables
result = client.emails.send({
'to': 'user@example.com',
'subject': 'Hi {{name}}',
'html': '<p>Hi {{name}}, welcome!</p>',
'variables': {'name': 'Alice'},
})
# Send bulk emails
result = client.emails.send_batch({
'emails': [
{'to': 'user1@example.com', 'subject': 'Hi {{name}}', 'html': '<p>Hi {{name}}</p>', 'variables': {'name': 'Alice'}},
{'to': 'user2@example.com', 'subject': 'Hi {{name}}', 'html': '<p>Hi {{name}}</p>', 'variables': {'name': 'Bob'}},
],
})
# Async usage
import asyncio
async def main():
result = await client.emails.async_send({
'to': 'user@example.com',
'subject': 'Async email',
'html': '<p>Sent async</p>',
})
asyncio.run(main())
Error Handling
from sendix import SendIX, AuthenticationError, SendIXError
client = SendIX('sk_live_your_api_key')
try:
result = client.emails.send({
'to': 'user@example.com',
'subject': 'Test',
'html': '<p>Test</p>',
})
except AuthenticationError as e:
print(f'Auth error: {e.message}')
except SendIXError as e:
print(f'Error {e.status}: {e.message} (code: {e.code})')
API Reference
SendIX(api_key, base_url="https://api.sendix.io")
| Method | Description |
|---|---|
emails.send(options) |
Send a single email |
emails.send_batch(options) |
Send multiple emails |
emails.list(options) |
List sent emails |
emails.get(email_id) |
Get a single email |
webhooks.create(options) |
Create a webhook |
webhooks.list() |
List all webhooks |
webhooks.delete(webhook_id) |
Delete a webhook |
webhooks.deliveries() |
Get webhook delivery logs |
Every sync method has an async_ counterpart for use with asyncio.
Metadata
Release files for sendix-python 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| sendix_python-0.1.0.tar.gz | 5.1 kB | Without provenance | Details for sendix_python-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sendix_python-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sendix_python-0.1.0-py3-none-any.whl |
Total release size: 12.5 kB
Release files / sendix_python-0.1.0.tar.gz
| Download URL | sendix_python-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d35451cc7282f7de42d715e6375efbd4f4525f9211335134aec0fd87c8373ef
|
|
BLAKE2b-256 checksum How to use checksums |
3c390880a125b58e549e152d8dfeb50ccbc9dc63f33aa6f281282af5ca2e398e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Release files / sendix_python-0.1.0-py3-none-any.whl
| Download URL | sendix_python-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f6e07b5911d0d21ace841c2b649010a4428d1fdec0d953dda1edb6dc766e331
|
|
BLAKE2b-256 checksum How to use checksums |
6a64e3d74175b4e0b5b40e12b41ce8eb2ae176f1ebeba79ebab274a69a87167a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Security for sendix-python 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.