Skip to main content

kalourmade-sailup

Python SDK for the Sailup SMS gateway.

Install

pip install kalourmade-sailup

Requires Python 3.9+. Single dependency: httpx.

Quickstart

import os
from kalourmade_sailup import SailupClient

client = SailupClient(os.environ["SAILUP_API_KEY"])

message = client.sms.send(
    from_="MyBrand",
    to=["233241234567"],
    body="Hello from Sailup",
)

Error handling

from kalourmade_sailup.exceptions import (
    AuthenticationError, ValidationError, RateLimitError, ApiError, NetworkError,
)

try:
    client.sms.send(from_="MyBrand", to=["233241234567"], body="Hi")
except AuthenticationError:
    ...  # invalid/missing API key
except ValidationError:
    ...  # bad request payload
except RateLimitError:
    ...  # back off and retry
except ApiError as e:
    ...  # other API error — e.status_code, e.raw_body
except NetworkError:
    ...  # couldn't reach Sailup

Verifying webhooks

from kalourmade_sailup import Webhooks
from kalourmade_sailup.exceptions import InvalidSignatureError

try:
    event = Webhooks.verify(raw_body, request.headers, os.environ["SAILUP_WEBHOOK_SECRET"])
except InvalidSignatureError:
    return Response(status=400)

Full documentation, runnable examples, and the PHP/Node SDKs: github.com/kalourmade/sailup-sdk.

Metadata

Release files for kalourmade-sailup 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kalourmade-sailup 0.1.3
File Size Uploaded Provenance Actions
kalourmade_sailup-0.1.3.tar.gz 6.3 kB Without provenance Details for kalourmade_sailup-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kalourmade-sailup 0.1.3
File Interpreter ABI Platform Actions
kalourmade_sailup-0.1.3-py3-none-any.whl Python 3 none any Details for kalourmade_sailup-0.1.3-py3-none-any.whl

Total release size: 12.2 kB

Release files / kalourmade_sailup-0.1.3.tar.gz

Download URL kalourmade_sailup-0.1.3.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f256874bf94ea57e2997b485ad1009c055f975efc0394d08df92de82f096d002
BLAKE2b-256 checksum
How to use checksums
e47144cee8a656e9cc6ce6bb3c90c4de13aba1ddaf8e23ebb000ca469a7cb8e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / kalourmade_sailup-0.1.3-py3-none-any.whl

Download URL kalourmade_sailup-0.1.3-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ae9dd9ec79f79ebcd02a296c8398f84cec000cf3061affe6593a7e75a5d48d7
BLAKE2b-256 checksum
How to use checksums
bac46350e683446a9b9784edb9ed5e99dff2c3eebb5ff165c480847470ed1b33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for kalourmade-sailup 0.1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page