Metadata-Version: 2.4
Name: tsp-scale-python
Version: 1.2.2
Summary: Official Python SDK for TSP Scale Email and WhatsApp API
Author: TSP Scale
License-Expression: MIT
Project-URL: Homepage, https://tspscale.in
Project-URL: Documentation, https://tspscale.in/documentation
Keywords: smtp,email,whatsapp,automation,api-client
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.31.0
Dynamic: license-file

# 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.

```bash
tsp-scale init
```

### Manual Installation
```bash
pip install tsp-scale-python
```

## 🛠️ Usage

```python
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`.
