Skip to main content

Python SDK

The Delegare Python SDK provides robust, type-safe clients for interacting with the Delegare API. It includes fully synchronous and asynchronous implementations, Pydantic v2 typing, and seamless x402 auto-payment routines.

Installation

Quick Start

Features

Synchronous and Asynchronous Clients

The SDK natively supports Delegare and AsyncDelegare implementations, giving you parity regardless of whether you’re using asyncio or standard synchronous scripts.

X402 Auto-Payment

You can use the built-in .fetch() utility to automatically process any HTTP requests that return 402 Payment Required headers. The client automatically retrieves the accepts schema, makes the corresponding charge against the provided intent mandate, and retries the request seamlessly.