Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

elizaos-plugin-acp

Python implementation of the ACP (Agentic Commerce Protocol) plugin for elizaOS.

Installation

pip install elizaos-plugin-acp

For development:

pip install -e ".[dev]"

Usage

import asyncio
from elizaos_plugin_acp import AcpClient, AcpClientConfig

async def main():
    # Create client from environment variables
    config = AcpClientConfig.from_env()
    client = AcpClient(config)
    
    # Create a checkout session
    session = await client.create_checkout_session({
        "currency": "USD",
        "line_items": [
            {
                "id": "item_123",
                "name": "Widget",
                "unit_amount": 1000,
                "quantity": 2
            }
        ],
        "buyer": {
            "email": "customer@example.com"
        }
    })
    
    print(f"Session ID: {session.id}")
    print(f"Status: {session.status}")
    print(f"Total: {session.totals}")

asyncio.run(main())

Environment Variables

  • ACP_MERCHANT_BASE_URL (required): Base URL of the merchant API
  • ACP_MERCHANT_API_KEY (optional): API key for authentication
  • ACP_REQUEST_TIMEOUT (optional): Request timeout in seconds (default: 30)
  • ACP_API_VERSION (optional): API version (default: 2026-01-30)

Running Tests

pytest

With coverage:

pytest --cov=elizaos_plugin_acp

License

MIT

Metadata

Release files for elizaos-plugin-acp 2.0.0a5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elizaos-plugin-acp 2.0.0a5
File Size Uploaded
elizaos_plugin_acp-2.0.0a5.tar.gz 22.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elizaos-plugin-acp 2.0.0a5
File Interpreter ABI Platform
elizaos_plugin_acp-2.0.0a5-py3-none-any.whl Python 3 none any Details

Total release size: 45.5 kB

Release files / elizaos_plugin_acp-2.0.0a5.tar.gz

Download URL elizaos_plugin_acp-2.0.0a5.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e9b6adf567c6e42d92e41f502de2534cc7f47089007011dfe3f65f5633e1e489
BLAKE2b-256 checksum
How to use checksums
cbb8c8cd3043a73722e7d6775c7b784c6d4675f45bb0f34180c1ab1dcac1aeb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / elizaos_plugin_acp-2.0.0a5-py3-none-any.whl

Download URL elizaos_plugin_acp-2.0.0a5-py3-none-any.whl
Size 23.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e02aca39eea14ec92a9520225854edac1514367a30c720c0399a4ddaa8d721d
BLAKE2b-256 checksum
How to use checksums
1bb97eb85a99c9ff33917e925a99f428ae43cd07f55477999049ef738837ccf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

2.0.0a5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page