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 | Provenance | Actions |
|---|---|---|---|---|
| ampersend_sdk-0.0.28.tar.gz | 39.9 kB | With provenance | Details for ampersend_sdk-0.0.28.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ampersend_sdk-0.0.28-py3-none-any.whl | Python 3 | none | any | Details for ampersend_sdk-0.0.28-py3-none-any.whl |
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 logSecurity for ampersend-sdk 0.0.28
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ampersend_sdk-0.0.28.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.