Metadata-Version: 2.4
Name: paperplane-sdk
Version: 0.1.0
Summary: Official Python SDK for Paperplane — Stateless Passwordless OTP Engine for Email, SMS & WhatsApp.
Author-email: ArcOps Cloud <support@arcopscloud.in>
Project-URL: Homepage, https://github.com/arcops/paperplane
Project-URL: Documentation, https://github.com/arcops/paperplane#readme
Project-URL: Bug Tracker, https://github.com/arcops/paperplane/issues
Keywords: paperplane,otp,auth,email,sms,whatsapp,passwordless,arcops
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Communications
Classifier: Topic :: Security
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# Paperplane Python SDK (`paperplane-sdk`)

[![PyPI version](https://img.shields.io/pypi/v/paperplane-sdk.svg)](https://pypi.org/project/paperplane-sdk/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Official Python SDK for **Paperplane** — the stateless passwordless OTP engine across Email, SMS, and WhatsApp.

Zero external dependencies (uses standard library `urllib`).

---

## Installation

```bash
pip install paperplane-sdk
```

---

## Quickstart

```python
from paperplane import pp

pp.apiKey = "pp_live_your_key_here"

# 1. Send OTP (auto-detects Email vs WhatsApp/SMS)
res = pp.send("+918279012305")
# or send to email:
# res = pp.send("user@example.com")
print(res)  # {'status': 'delivered', 'to': '+918279012305', ...}

# 2. Verify submitted OTP code
ver = pp.verify("+918279012305", "375666")
if ver.get("verified"):
    print("User authenticated successfully!")
else:
    print("Invalid code:", ver.get("error"))

# 3. Inspect delivery logs
logs = pp.logs(10)
print(logs.get("logs"))
```

---

## Features

- **2-line integration:** No signup cascades, no database or Redis setup needed.
- **Stateless verification:** Fast, secure HMAC-based verification without storing state.
- **Zero dependencies:** Clean, lightweight, and works seamlessly with FastAPI, Django, Flask, Celery, and Lambda.

---

## License

MIT © [ArcOps Cloud](https://arcopscloud.in)
