tp — non-invasive CLI testing framework for AI workflows. Submits results to trapstreet.run.
Project description
trap
Lives at
trapstreet-mvp/cli/— part of the trapstreet monorepo.
Non-invasive CLI testing framework for AI prompts, agents, and workflows.
trap treats any solution as a black box — it invokes it as a subprocess, captures outputs, then optionally scores them through a language-agnostic judge and grader. The solution doesn't need to import trap or know it exists.
Install
# requires uv — https://docs.astral.sh/uv/getting-started/installation/
# from PyPI
uv tool install trapstreet-cli
# from git (latest main)
uv tool install "git+https://github.com/AntiNoise-ai/trapstreet-mvp.git#subdirectory=cli"
The command is tp.
How it works
inputs/{case_id}/ ──[INPUTS env var]──▶ solution ──[OUTPUTS env var]──▶ .trap/{task}/{ts}/{case_id}/
expected/{case_id}/ │
│ │
└──────────────────────── judge ◀──────────────────────────────────────────┘
│
{metrics: any JSON}
│
[collect all cases, hand to grader]
│
grader
Two roles, two directories, one IO contract:
- Solution author — writes
trap.yamland the solution code - Task author — writes
traptask.yaml,inputs/,expected/, and optional judge/grader scripts
Quick start
# from examples/echo/solution/
tp run # run all cases
tp run -t smoke # run only cases tagged `smoke`
Documentation
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
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 trapstreet_cli-0.4.0.tar.gz.
File metadata
- Download URL: trapstreet_cli-0.4.0.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10b530caa0f44a72c66abc352403155cb7d01cc6dee5ad3f36a87e9c718527a0
|
|
| MD5 |
76215b17b120431c0af7c9d9c72a2138
|
|
| BLAKE2b-256 |
f890208d81cdf4ec20bcf602cec44ce3af13ca24da671a499f1adc77f9aa851c
|
File details
Details for the file trapstreet_cli-0.4.0-py3-none-any.whl.
File metadata
- Download URL: trapstreet_cli-0.4.0-py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3080186e28ae67d58cf804eac02b86a0cbee149c16b51536b348fa7c665b5d08
|
|
| MD5 |
10be8e78ff6793898bbbc265d4a994cc
|
|
| BLAKE2b-256 |
65abd985c4574e341c6c6d4e89dc453932e0df5a1efdf0c0791bbf4df4ce0e8d
|