Skip to main content

elizaOS ACP Plugin - Agentic Commerce Protocol for checkout and commerce

Project description

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

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

elizaos_plugin_acp-2.0.0a5.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

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

elizaos_plugin_acp-2.0.0a5-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file elizaos_plugin_acp-2.0.0a5.tar.gz.

File metadata

  • Download URL: elizaos_plugin_acp-2.0.0a5.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for elizaos_plugin_acp-2.0.0a5.tar.gz
Algorithm Hash digest
SHA256 e9b6adf567c6e42d92e41f502de2534cc7f47089007011dfe3f65f5633e1e489
MD5 fb883a740e904f65e3d5f16c668427fe
BLAKE2b-256 cbb8c8cd3043a73722e7d6775c7b784c6d4675f45bb0f34180c1ab1dcac1aeb2

See more details on using hashes here.

File details

Details for the file elizaos_plugin_acp-2.0.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for elizaos_plugin_acp-2.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 6e02aca39eea14ec92a9520225854edac1514367a30c720c0399a4ddaa8d721d
MD5 d35da78d8d682ac016cf1bd172e3e2f4
BLAKE2b-256 1bb97eb85a99c9ff33917e925a99f428ae43cd07f55477999049ef738837ccf5

See more details on using hashes here.

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