Python SDK

Python SDK integrations

Choose the Python boundary that fits your application, then use the matching guide to verify a paid request.

The Python SDK has one framework-neutral client and two supported web-framework integrations. All paths call the same Merchant API and preserve the same x402 payer retry.

View the recuut package.

Use Python 3.11 through 3.14. Choose by job:

Start with FastAPI or Django when you need to protect a web endpoint. Use the plain client in workers, commands, and services that need merchant records.

Pulled contracts are recommended for either framework because they replace a copied revision key and untyped reporting dictionary with checked Python names. A raw revision is the fallback when generated files cannot be committed.