SDK (Python)
What it does
Official Python SDK (potal on PyPI) for server-side integration. Provides typed methods with Pydantic models for all API endpoints. Supports Python 3.8+ with async/await support and automatic retry logic.
How to use it
Install the SDK
Run pip install potal and import from potal import PotalClient.
Initialize the client
Create client = PotalClient(api_key="sk_live_...") with your secret key.
Call methods
Use methods like client.classify(), client.calculate(), client.sanctions.screen() with typed parameters.
Use async
For async applications, use AsyncPotalClient with await for all API calls.
Related Features
Official JavaScript/TypeScript SDK published on npm
Comprehensive cURL examples and shell script snippets
155+ API endpoints with consistent JSON responses
Interactive API docs with code examples in 5 languages
Classify hundreds of products at once via CSV or JSON batch API