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
Metadata
Release files for trapstreet-cli 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trapstreet_cli-0.4.0.tar.gz | 23.0 kB | Without provenance | Details for trapstreet_cli-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trapstreet_cli-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for trapstreet_cli-0.4.0-py3-none-any.whl |
Total release size: 56.4 kB
Release files / trapstreet_cli-0.4.0.tar.gz
| Download URL | trapstreet_cli-0.4.0.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10b530caa0f44a72c66abc352403155cb7d01cc6dee5ad3f36a87e9c718527a0
|
|
BLAKE2b-256 checksum How to use checksums |
f890208d81cdf4ec20bcf602cec44ce3af13ca24da671a499f1adc77f9aa851c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / trapstreet_cli-0.4.0-py3-none-any.whl
| Download URL | trapstreet_cli-0.4.0-py3-none-any.whl |
|---|---|
| Size | 33.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3080186e28ae67d58cf804eac02b86a0cbee149c16b51536b348fa7c665b5d08
|
|
BLAKE2b-256 checksum How to use checksums |
65abd985c4574e341c6c6d4e89dc453932e0df5a1efdf0c0791bbf4df4ce0e8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for trapstreet-cli 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.