Skip to main content

Python SDK for ampersend

Project description

ampersend-sdk

Python SDK for integrating x402 payment capabilities into A2A (Agent-to-Agent) protocol applications.

Quick Start

from ampersend_sdk.a2a.client import X402RemoteA2aAgent
from ampersend_sdk.x402.treasurers.naive import NaiveTreasurer
from ampersend_sdk.x402.wallets.account import AccountWallet

wallet = AccountWallet(private_key="0x...")
treasurer = NaiveTreasurer(wallet)

agent = X402RemoteA2aAgent(
    treasurer=treasurer,
    agent_url="http://localhost:8001",
    agent_name="SellerAgent"
)

result = await agent.run("your query")

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

Project details


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.1.tar.gz (19.7 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.1-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ampersend_sdk-0.0.1.tar.gz
Algorithm Hash digest
SHA256 453cf96f2daa91d27967cbf46a96b8b86c646bc3001b8e7a715c99f75369ab0e
MD5 65c0da339f22579a234d9b12a6089108
BLAKE2b-256 6f143a22c46a0b9fa62697370b59577020013a7ff4160bb21f1f16587eaf6ea2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ampersend_sdk-0.0.1.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.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ampersend_sdk-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01d4737d51cd93bf7e001ef235e44f6a474f877c1025927cb3f80e5a5a6b8fc5
MD5 7f68436d3da4f6927d52ceeb76ad944b
BLAKE2b-256 337f3e96501a4d0b68b3d791e8ebb0171782442474c923bd3e4af92f7e65bf62

See more details on using hashes here.

Provenance

The following attestation bundles were made for ampersend_sdk-0.0.1-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.

Supported by

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