algorand-x402-python
Installation
SKILL.md
x402 on Algorand - Python
Build x402 HTTP-native payment applications on Algorand with Python. Use the reference files below for detailed guidance on each component.
Python Quick Start
The x402-avm package on PyPI bundles core protocol, AVM mechanism, HTTP clients, and server middleware. Pick the extras you need:
# AVM only (no HTTP client/server)
pip install "x402-avm[avm]"
# Server middleware (pick one)
pip install "x402-avm[fastapi,avm]" # FastAPI async
pip install "x402-avm[flask,avm]" # Flask sync
# HTTP clients (pick one)
pip install "x402-avm[httpx,avm]" # Async with httpx
pip install "x402-avm[requests,avm]" # Sync with requests