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 import create_ampersend_treasurer
from ampersend_sdk.a2a.client import X402RemoteA2aAgent

# Create treasurer (one-liner setup)
treasurer = create_ampersend_treasurer(
    smart_account_address="0x...",
    session_key_private_key="0x...",
)

agent = X402RemoteA2aAgent(
    treasurer=treasurer,
    name="my_agent",
    agent_card="https://agent.example.com/.well-known/agent-card.json",
)

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ampersend_sdk-0.0.7.tar.gz
  • Upload date:
  • Size: 25.0 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.7.tar.gz
Algorithm Hash digest
SHA256 53b9b2ebeb1d0e4c7100203f7b70928a562cabe6ba4cbd4fee8ca2ef751207a1
MD5 497081219fdf62c623c50f51ab63d5b6
BLAKE2b-256 9a6c009aff695f0dc2043d5477a08481b8b0dab48d8ab21ed92481a6dfafb683

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ampersend_sdk-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 42.1 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d2b4a042dc235e0f47739ff63f305bf8d7158bedc4e617c7ccf149807900a716
MD5 0ee6e0cc5468c684b5b1552fda3f75bd
BLAKE2b-256 a273284355d756c9ada1b7ac91b7a375360f53412ed55bb1ff48ed83a1b66923

See more details on using hashes here.

Provenance

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