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.

🚀 Quick Start (Zero-Config)

Initialize your project in seconds. This will link your project, install the SDK, and set up your secure config.

tsp-scale init

Manual Installation

pip install tsp-scale-python

🛠️ Usage

from tsp_scale_python import TspScaleClient

# Authenticates automatically from local config or environment variables
client = TspScaleClient()

def send_test():
    res = client.send_email(
        to="recipient@example.com",
        subject="Hello from TSP Scale",
        html="<h1>It works!</h1>"
    )
    print(res)

Note: The sender field is optional if your API Key is locked to a specific sender identity.

🔐 Production Deployment

When deploying to Railway, VPS, or Cloud, add these environment variables:

  • TSP_API_KEY: Your secret API key.
  • TSP_PROJECT_ID: The unique ID generated during init.

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.2.2.tar.gz (5.7 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.2.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsp_scale_python-1.2.2.tar.gz
  • Upload date:
  • Size: 5.7 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.2.2.tar.gz
Algorithm Hash digest
SHA256 f376a00ea5b321c334f593e11fc27a87c6ba6cda8b4c05babf63cb70471d7799
MD5 b9a4a00f61848c0e74e42a7c9dc40838
BLAKE2b-256 ba580d87eaee594deabe7189fec80e6528302bc8223a2fc5953a1c5c2c6e7d5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tsp_scale_python-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3ac1b818f5c1f8ca6001e59daff04c64fae4aa53b81dfb71b3ca692cfa4d43f
MD5 922d11114ea12c5ce18fd1dc31288265
BLAKE2b-256 6573c13653aff47521794390ecd3be8498d77afb499381bb0a68c17b3af805cd

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