Skip to main content
Status: 🔜 Coming Q1 2026 The Python SDK is currently in development. This page shows the planned API and features.

Planned Features

Flask Support

Decorator-based middleware for Flask

FastAPI Support

Dependency injection for FastAPI

Async/Await

Full async support with asyncio

Type Hints

Complete type annotations

Pydantic Models

Data validation with Pydantic

CLI Tools

Command-line tools for testing

Installation (Planned)

bash pip install prism-flask # or pip install prism-fastapi
The canonical SDK config is identify_token (PRISM_IDENTIFY_TOKEN env var) — formerly api_key / PRISM_API_KEY. SDKs accept the legacy names as fallback during the migration window; new code should use the canonical names.

Planned API

Flask Example

FastAPI Example

Configuration

Payment Info Model

Error Handling (Flask)

Error Handling (FastAPI)

Advanced Flask Patterns

Blueprint Support

Dynamic Pricing

Custom Middleware

Advanced FastAPI Patterns

Dependency Injection

Background Tasks

WebSocket Support

Testing Support

Flask Testing

FastAPI Testing

CLI Tools (Planned)

Planned Features Roadmap

1

Q1 2026 - Core Libraries

  • Flask decorator support - FastAPI dependency injection - Basic payment verification - Type hints and Pydantic models
2

Q2 2026 - Advanced Features

  • WebSocket support - Background task integration - Advanced caching - CLI tools
3

Q3 2026 - Frameworks

  • Django middleware - Starlette support - Sanic integration - Tornado handlers
4

Q4 2026 - Ecosystem

  • Celery integration - Redis caching - PostgreSQL tracking - Prometheus metrics

Why Python SDK?

Data Science

Python dominates ML/AI applications

Simplicity

Clean, readable decorator syntax

Async Support

Native async/await with FastAPI

Ecosystem

Rich ecosystem of libraries

Expected Use Cases

AI/ML APIs

Data APIs

Content APIs

Get Notified

Want to be notified when the Python SDK is released?

Join Waitlist

Get email notifications for Python SDK updates

Contribute

Interested in contributing to the Python SDK development?

GitHub Discussions

Share ideas and feedback

Alternative Solutions

While waiting for the Python SDK, you can:
Use Prism Gateway REST API with requests or httpx

API Reference

Complete REST API documentation
Last modified on May 5, 2026