prelude-python-sdk
The official Python library for the Prelude API
What it is and what it does
This is the official Python client library for the Prelude REST API, generated using Stainless. It wraps the Prelude service's endpoints in a typed, object-oriented interface that works with modern Python versions. The library provides both synchronous (Prelude) and asynchronous (AsyncPrelude) clients, both powered by httpx under the hood, with full type hints for request parameters and response objects via Pydantic models and TypedDicts.
Typical usage involves instantiating a client with your API token, then calling methods like verification.create() to interact with the Prelude service. The library handles connection errors, rate limiting, timeouts, and retries automatically. It supports optional aiohttp as an HTTP backend for improved async concurrency. All responses are Pydantic models with helper methods for JSON serialization and dictionary conversion, and the library includes detailed error types for different HTTP status codes.
Use it for:
- Integrate phone number or email verification into a Python application using Prelude's verification API.
- Build async-first services that call Prelude endpoints concurrently without blocking.
- Develop type-safe API integrations with IDE autocomplete and static type checking for Prelude requests and responses.
- Handle API errors gracefully by catching specific exception types (RateLimitError, AuthenticationError, etc.) and implementing retry logic.
- Configure per-request timeouts and retry policies for different verification workflows.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a typed Python client for the Prelude REST API with both synchronous and asynchronous interfaces, generated with Stainless.
Yes. This is a well-maintained, actively developed official SDK with no known vulnerabilities, low install friction, and permissive licensing. It supports current Python versions and provides both sync and async interfaces with full type safety. Install it if you need to integrate Prelude's verification service into a Python application.
Install
prelude-python-sdk on PyPI
pip
pip install prelude-python-sdkuv
uv add prelude-python-sdkpoetry
poetry add prelude-python-sdkInstalling prelude-python-sdk
Before you install
Low friction install with a pure Python wheel. Actively maintained as of 2 days ago with recent commits. Supports current Python versions (3.9 through 3.14) and carries no known vulnerabilities.
License in practice
Apache-2.0 is a permissive license; you can use this library in commercial and proprietary projects with minimal restrictions, provided you include a copy of the license and note any modifications.
Quickstart
pip install prelude-python-sdk
import os
from prelude_python_sdk import Prelude
client = Prelude(api_token=os.environ.get("API_TOKEN"))
verification = client.verification.create(
target={"type": "phone_number", "value": "+30123456789"}
)
print(verification.id)
Requires Python 3.9 or later and a valid Prelude API token (typically set via environment variable).
Verify before relying
- Whether the Prelude service itself has SLAs or uptime guarantees relevant to production use.
- Performance characteristics and rate limits of the underlying Prelude API.
- Whether aiohttp backend provides measurable concurrency improvements for typical workloads.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — anyio, distro, httpx, pydantic, sniffio, typing-extensions |
| Maintenance | actively maintained — 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,044,204/month — #4,454 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: prelude_python_sdk-0.13.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
composio-clientA Python client library for the Composio REST…
permissive · top 5,000 on PyPI
opencode-aiProvides a Python client library for the…
permissive · top 15,000 on PyPI
agentex-clientProvides a typed Python REST client for the…
permissive · top 15,000 on PyPI
arcadepyProvides a typed Python client library for the…
permissive · top 15,000 on PyPI
parallel-webProvides a Python client library for the…
permissive · top 5,000 on PyPI
simple-rest-clientA lightweight HTTP client library for building…
unclear · top 15,000 on PyPI
postgrid-pythonProvides a typed Python client for the PostGrid…
permissive · top 15,000 on PyPI
glean-api-clientA Python SDK for accessing Glean's REST API,…
unclear · top 15,000 on PyPI
cloudflareProvides a Python client library for the…
permissive · top 5,000 on PyPI
imagekitioPython client library for the ImageKit REST…
permissive · top 15,000 on PyPI