Skip to main content

Paperplane Python SDK (paperplane-sdk)

PyPI version License: MIT

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

Zero external dependencies (uses standard library urllib).


Installation

pip install paperplane-sdk

Quickstart

from paperplane import pp

pp.APIKey = "pp_live_your_key_here"
# pp.URL = "https://<id>.lambda-url.us-east-1.on.aws"  # optional self-hosted override

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

# 2. Verify submitted OTP code
ver = pp.verify("+918xxxxxxx0", "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

Metadata

Release files for paperplane-sdk 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paperplane-sdk 0.1.1
File Size Uploaded Provenance Actions
paperplane_sdk-0.1.1.tar.gz 3.7 kB Without provenance Details for paperplane_sdk-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for paperplane-sdk 0.1.1
File Interpreter ABI Platform Actions
paperplane_sdk-0.1.1-py3-none-any.whl Python 3 none any Details for paperplane_sdk-0.1.1-py3-none-any.whl

Total release size: 7.4 kB

Release files / paperplane_sdk-0.1.1.tar.gz

Download URL paperplane_sdk-0.1.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a9296c4e45f178f2be73a4ef651077fb0a5c74f8b714b53684e80f2a1ee3ef47
BLAKE2b-256 checksum
How to use checksums
89a4b9aa87166871422b63ace3a2438a6b91390ec1b42d3952d6f9342a59587d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / paperplane_sdk-0.1.1-py3-none-any.whl

Download URL paperplane_sdk-0.1.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64a2e39a2a73d15495bef67b435ad44123a2e8f9d89a98f1117819303d08f128
BLAKE2b-256 checksum
How to use checksums
cb4d374939ea1719984231f46fe003cbb50c497deba8a2b0d6f119ef8bd7470f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Security for paperplane-sdk 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page