Skip to main content

CLI tool for testing Agent Payments Protocol (AP2) implementations

Project description

AP2Test - Agent Payments Protocol Testing CLI

A command-line tool for testing AP2 (Agent Payments Protocol) payment flows.

Overview

AP2Test helps developers test their AI agent payment implementations by simulating the complete mandate flow:

  • Intent Mandates - Define agent authorization constraints
  • Cart Mandates - Capture specific purchase approvals
  • Payment Mandates - Execute cryptographically-signed transactions

Installation

pip install ap2test

Examples

View detailed audit trail

ap2test audit

Check current status

ap2test status

Create a custom intent

ap2test create-intent --amount 1000 --merchant store_xyz --category electronics

Create a custom cart

ap2test create-cart --items "Laptop:899:1,Mouse:49:1" --merchant store_xyz

Execute with crypto payment

ap2test execute-payment --method stablecoin

Export audit as JSON

ap2test audit --format json

Clear all data when done testing

ap2test reset

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

ap2test-0.1.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

ap2test-0.1.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file ap2test-0.1.0.tar.gz.

File metadata

  • Download URL: ap2test-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ap2test-0.1.0.tar.gz
Algorithm Hash digest
SHA256 455298cd14680cf10662f70119465a4b0ec9a6956e9f002d807eee5e02c87813
MD5 2e7f9c7a258a5ec4372732749eb26cbf
BLAKE2b-256 0d8dd4954866c4cf9af84d1efb1dfc7bc9b2c327531a3c436c6a8fcc47071615

See more details on using hashes here.

File details

Details for the file ap2test-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ap2test-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ap2test-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61347c382be5c9f913634d5ceff1580d985dc4c1527ed39976b51a3fd83533dc
MD5 7d3c08ac582156621bfeb22c929ff2a7
BLAKE2b-256 8de74974171232ca031724f50da7ebe5fa755f51cf6e38ef803968799612e6bf

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