ampersend-sdk
Python SDK for integrating x402 payment capabilities into A2A (Agent-to-Agent) protocol applications.
Quick Start
# agent.py
import os
from ampersend_sdk import create_ampersend_treasurer
from ampersend_sdk.a2a.client import X402RemoteA2aAgent
treasurer = create_ampersend_treasurer(
smart_account_address=os.environ["SMART_ACCOUNT_ADDRESS"],
session_key_private_key=os.environ["SESSION_KEY_PRIVATE_KEY"],
)
root_agent = X402RemoteA2aAgent(
treasurer=treasurer,
name="my_agent",
agent_card="https://agent.example.com/.well-known/agent-card.json",
)
Run with ADK: adk run agent.py
Package Structure
ampersend_sdk/
├── a2a/
│ ├── client/ # Client-side x402 support
│ └── server/ # Server-side x402 support
└── x402/ # Core x402 components
├── treasurer.py
└── wallets/ # EOA & Smart Account wallets
Documentation
→ Complete Python SDK Documentation
Development
# Test
uv run -- pytest
# Lint & format
uv run -- ruff check python
uv run -- ruff format python
# Type check
uv run -- mypy python
Learn More
Metadata
Release files for ampersend-sdk 0.0.28
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ampersend_sdk-0.0.28.tar.gz | 39.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ampersend_sdk-0.0.28-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.0 kB
Release files / ampersend_sdk-0.0.28.tar.gz
| Download URL | ampersend_sdk-0.0.28.tar.gz |
|---|---|
| Size | 39.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69005e8d20a9565323bfbd68ff9e42407e638f5079a02e4b8f84b062399bf089
|
|
BLAKE2b-256 checksum How to use checksums |
b80727e2710d84de7715f145cd7c134d178c2f3ba9fc581d6d11ad2edebc86c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 23, 2026.
Transparency logRelease files / ampersend_sdk-0.0.28-py3-none-any.whl
| Download URL | ampersend_sdk-0.0.28-py3-none-any.whl |
|---|---|
| Size | 61.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c33c4bcf4468cafa82e13c8ee7821c94118ce5e76b0a0f27d6956615b6f2c606
|
|
BLAKE2b-256 checksum How to use checksums |
7ac471b593687bc9707f3858458ee029189ca150b221cad086fbe082b9b2343f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 23, 2026.
Transparency log