Paper-mode protocol tollbooth for A2A agent swarms
Project description
nano-empire-tollbooth
Paper-mode protocol tollbooth for A2A agent swarms.
The package meters routed agent messages, writes a JSONL settlement ledger, and exposes a fail-closed live-mode verifier hook. It is designed as a developer-facing wedge for A2A Gateway pilots, not as autonomous payment capture.
Install
pip install nano-empire-tollbooth
Quick Start
import asyncio
from nano_empire_tollbooth import Tollbooth, TollboothConfig
booth = Tollbooth(TollboothConfig(paper_mode=True))
async def main() -> None:
record = await booth.charge(
task_id="task-123",
source_agent="agent-alpha",
target_agent="agent-beta",
)
print(record.status.value, record.amount_usd)
asyncio.run(main())
Safety Defaults
paper_mode=Trueby default.TOLLBOOTH_PAPER_MODE=trueforces paper mode.- Live mode with
require_payment_before_route=Truereturnspendingunless wallet, signature, and verifier are present. - Live mode with an invalid verifier result returns
failed. - Ledger records are append-only JSONL entries.
Revenue Path
Use the SDK as a proof asset for:
$299Diagram-to-Agent Workflow Audit$999A2A Gateway Pilot- enterprise private mesh integration
Publishing, live payment activation, and external outreach remain human-approved actions.
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
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 nano_empire_tollbooth-0.1.0.tar.gz.
File metadata
- Download URL: nano_empire_tollbooth-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1f116090d951dd47c81e4898dd4bee22af88b88fbcdb2fb26f7db0eef7b608c
|
|
| MD5 |
6a2cb297f81dd9e082963abb7c3accf7
|
|
| BLAKE2b-256 |
52d19a6931dfb92a585025ad80d7c7cb4b54b9aa637c034de929a20e4bd29660
|
File details
Details for the file nano_empire_tollbooth-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nano_empire_tollbooth-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e05ad4a6d6b77d5ad3832f226dbf221f3e2aa410a7a9c6c57ebc2ea2345e275f
|
|
| MD5 |
4def7feb86e1458d88dc351d80e53080
|
|
| BLAKE2b-256 |
a003ce976ee0cc94e2e74ccdb87f3854acea871c530e8473069dbed1b72a521c
|