Skip to main content

Official Python SDK for TSP Scale Email and WhatsApp API

Project description

tsp-scale-python

Official Python SDK for TSP Scale.

Install

pip install tsp-scale-python

Usage

from tsp_scale_python import TspScaleClient

client = TspScaleClient(
    api_key="YOUR_API_KEY",
    base_url="https://api.tspscale.in/api/v1",
)

result = client.send_email({
    "from": "support@yourdomain.com",
    "to": "user@example.com",
    "subject": "Hello from TSP Scale",
    "html": "<h1>It works</h1>",
})

# Send WhatsApp
client.send_whatsapp({
    "to": "919988776655",
    "text": "Hello from Python!",
})

print(result)

The SDK automatically adds signed security headers required by /emails/send.

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

tsp_scale_python-1.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

tsp_scale_python-1.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsp_scale_python-1.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for tsp_scale_python-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3706f205681ed242c4159b340c8f82a63fc459592b350d4ae6c157a7272d9d98
MD5 d0831de9a66ccaee5064b3ec29c5fe7d
BLAKE2b-256 680eb059136e19821bb4e5a003618d48fea866b7213c6ce402b519f046dde2a9

See more details on using hashes here.

File details

Details for the file tsp_scale_python-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tsp_scale_python-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5aed9602f16bc036a0a885b6555cbd7403af5481941b917d635585f7ade47fb
MD5 948652990cc370f69e0cce22de5f75de
BLAKE2b-256 c474c53f100c93f55e43d4644cc44abc7e99bac23407ec9d8f79f54a15d0dda2

See more details on using hashes here.

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