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 APIACP_MERCHANT_API_KEY(optional): API key for authenticationACP_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9b6adf567c6e42d92e41f502de2534cc7f47089007011dfe3f65f5633e1e489
|
|
| MD5 |
fb883a740e904f65e3d5f16c668427fe
|
|
| BLAKE2b-256 |
cbb8c8cd3043a73722e7d6775c7b784c6d4675f45bb0f34180c1ab1dcac1aeb2
|
File details
Details for the file elizaos_plugin_acp-2.0.0a5-py3-none-any.whl.
File metadata
- Download URL: elizaos_plugin_acp-2.0.0a5-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e02aca39eea14ec92a9520225854edac1514367a30c720c0399a4ddaa8d721d
|
|
| MD5 |
d35da78d8d682ac016cf1bd172e3e2f4
|
|
| BLAKE2b-256 |
1bb97eb85a99c9ff33917e925a99f428ae43cd07f55477999049ef738837ccf5
|