Python is the lingua franca of AI, so paying for APIs from Python — and charging agents that call your Python service — is a common need. These libraries wrap the HTTP 402 handshake for servers (FastAPI, Flask) and clients (httpx, requests).
Below are the Python-focused x402 and agent-payment libraries in the directory.
The Python category right now
Of the 231 Python libraries in the index, 12 have real traction (100+ stars) and 85 have none yet. agent-apprenticeship is the reference point at 1,321★. The median is 1★ — useful context before you pick a dependency from this list.
If you are choosing a stack, note that Python (94%) and TypeScript (3%) carry most of the Python work, much of it from Scottcjn, capiscio, rplryan. Projects tag themselves with ai-agents, agent-to-agent, x402 more than anything else.
Freshness matters more than star count in a category this young: 76 libraries shipped code in the last month, 115 in the last quarter, and 1 have not been touched in over a year. In short, activity is uneven — check the last-commit date before adopting. Newest addition: bde-score (2026-07).
Figures recomputed from the tracked repositories on every build.