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.3.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.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsp_scale_python-1.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 90eed5054f7c14c2c98a8cd929186c0e9f8d12016aedfd73504e8ad3dacd5288
MD5 99ab02d8157161cfe73101fa199ffeac
BLAKE2b-256 0a00ffb9fc522c52228579dac33c6b0d9d647ad296c7584c3115cce3406de209

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tsp_scale_python-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7aa9c584a9b21ff8508c49f9397136e35eac7d46251d27ca858695fdf48bc2c9
MD5 b1e65868360af9c02afe66a1e911926c
BLAKE2b-256 4391c1401064e2a6b2f94a6d8e5e835d5f8dc449e6c9936985e4f0ecd47ce2cd

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