Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ampersend_sdk-0.0.28.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ampersend_sdk-0.0.28-py3-none-any.whl (61.1 kB view details)

Uploaded Python 3

File details

Details for the file ampersend_sdk-0.0.28.tar.gz.

File metadata

  • Download URL: ampersend_sdk-0.0.28.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ampersend_sdk-0.0.28.tar.gz
Algorithm Hash digest
SHA256 69005e8d20a9565323bfbd68ff9e42407e638f5079a02e4b8f84b062399bf089
MD5 ef3d499a3ef3029e51ab644ec7a5de38
BLAKE2b-256 b80727e2710d84de7715f145cd7c134d178c2f3ba9fc581d6d11ad2edebc86c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for ampersend_sdk-0.0.28.tar.gz:

Publisher: python-release.yml on edgeandnode/ampersend-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ampersend_sdk-0.0.28-py3-none-any.whl.

File metadata

  • Download URL: ampersend_sdk-0.0.28-py3-none-any.whl
  • Upload date:
  • Size: 61.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ampersend_sdk-0.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 c33c4bcf4468cafa82e13c8ee7821c94118ce5e76b0a0f27d6956615b6f2c606
MD5 a31a2666c1f79f94e7816e544bf038f5
BLAKE2b-256 7ac471b593687bc9707f3858458ee029189ca150b221cad086fbe082b9b2343f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ampersend_sdk-0.0.28-py3-none-any.whl:

Publisher: python-release.yml on edgeandnode/ampersend-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.28 This release

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.22

2 files

0.0.21

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.7

2 files

0.0.6

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page