skillfed

prelude-python-sdk

The official Python library for the Prelude API

prelude-python-sdk v0.13.0 1.0M downloads/30d#4,454 on PyPI1
Permissive license Apache-2.0 Active released

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-sdk

uv

uv add prelude-python-sdk

poetry

poetry add prelude-python-sdk

Installing 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

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

prelude api client pythonrest api client libraryasync http client sdktyped api wrapperprelude verification apipython sdk generatorhttpx-based api client
api-clientasync-supporttype-safe

More Python Modules packages