Python SDK
The Axon Python SDK is under active development.
Python SDK
The Axon Python SDK is currently under active development and has not yet been released.
Planned Scope
The Python SDK will provide the same capabilities as the TypeScript SDK, targeting the most popular Python AI agent frameworks:
- LangChain / LangGraph -- tool integration for payment actions
- CrewAI -- native tool for agent crews
- AutoGen -- function calling support
- PydanticAI -- typed tool definitions
- smolagents -- lightweight agent integration
What It Will Include
AxonClientclass withpay(),poll(),get_bot_config(), andsign_payment()methods- EIP-712 signing via
eth-accountorpy_ecc - Typed dataclasses for all request and response models
- USDC address constants and chain ID utilities
- PyPI distribution as
axon-sdk
In the Meantime
You can integrate with Axon from Python today using the REST API directly. The API is language-agnostic and only requires HTTP requests and EIP-712 signing.
For EIP-712 signing in Python, the eth-account library provides sign_typed_data():
from eth_account import Account
from eth_account.messages import encode_typed_data
# See the Signing Helpers docs for the exact EIP-712 domain and types
signature = Account.sign_typed_data(
private_key,
domain_data,
{"PaymentIntent": types},
intent_data,
)Refer to the API Reference for endpoint details and the TypeScript Signing Helpers for the EIP-712 struct definitions.
Stay Updated
The Python SDK will be announced on the Axon blog and GitHub when available.