Python bindings for Assay trace capture, policy coverage, and explanation helpers.
Project description
Assay Python Bindings
assay-it is the Python package for the assay import namespace.
It currently provides a small, bounded surface on top of Assay core:
AssayClientfor writing JSONL trace records from PythonCoveragefor policy coverage analysis against trace/tool-call inputsExplainerfor rule-by-rule explanation of a single trace- a
pytestfixture plugin exposed asassay_client
Install
pip install assay-it
Import path:
from assay import AssayClient, Coverage, Explainer, validate
What It Is
This package is for Python-side trace capture and lightweight policy-analysis helpers. It is useful when you want to:
- append structured trace events to a JSONL file from Python
- analyze tool-call traces against an Assay policy
- explain why a given trace matched or violated policy rules
- use a simple pytest fixture around the Python client
What It Is Not
This package is not the full Assay CLI or the full trust-compiler surface. It does not replace:
assay mcp wrapand runtime MCP enforcement- evidence bundle generation and verification workflows
- Trust Basis / Trust Card generation
- the GitHub Action or release-binary install path
Those outward-facing product surfaces live in the main Assay CLI and repository docs.
Example
from assay import AssayClient, Coverage, Explainer
client = AssayClient("traces.jsonl")
client.record_trace({"tool": "ToolA", "args": {"q": "weather"}})
coverage = Coverage("assay.yaml")
report = coverage.analyze([[{"tool": "ToolA", "args": {"q": "weather"}}]])
explainer = Explainer("assay.yaml")
details = explainer.explain([{"tool": "ToolA", "args": {"q": "weather"}}])
Repository
- Main project: https://github.com/Rul1an/assay
- Current CLI and trust-compiler docs: https://github.com/Rul1an/assay/blob/main/README.md
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 Distributions
Built Distributions
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 assay_it-3.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: assay_it-3.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 500.8 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
831af9f608cc214744491dd3566afc524939288e52618d072d5f5de991801756
|
|
| MD5 |
72f21187bf88c555fe03e4f3d1163f85
|
|
| BLAKE2b-256 |
0c10e14c508fa12bc9a6b7b91d4c3d4da02ee54b609b2e46f4d4dacd9d499645
|
Provenance
The following attestation bundles were made for assay_it-3.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release.yml on Rul1an/assay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
assay_it-3.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
831af9f608cc214744491dd3566afc524939288e52618d072d5f5de991801756 - Sigstore transparency entry: 1405547765
- Sigstore integration time:
-
Permalink:
Rul1an/assay@acc9e07a5665e2953fef69e3a25bca36a4a002a5 -
Branch / Tag:
refs/tags/v3.9.1 - Owner: https://github.com/Rul1an
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@acc9e07a5665e2953fef69e3a25bca36a4a002a5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file assay_it-3.9.1-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: assay_it-3.9.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 768.6 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8109624b4b7fe62475c58f703a3f5d2d57ffdccd2a15e5b2b078bd944e26150
|
|
| MD5 |
c4209684e170cf8d0782cc674743bcde
|
|
| BLAKE2b-256 |
d158605388ddac5aa7e15894b56489da6ad06f211869d79786358c7e0327dd94
|
Provenance
The following attestation bundles were made for assay_it-3.9.1-cp312-cp312-macosx_11_0_arm64.whl:
Publisher:
release.yml on Rul1an/assay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
assay_it-3.9.1-cp312-cp312-macosx_11_0_arm64.whl -
Subject digest:
b8109624b4b7fe62475c58f703a3f5d2d57ffdccd2a15e5b2b078bd944e26150 - Sigstore transparency entry: 1405547889
- Sigstore integration time:
-
Permalink:
Rul1an/assay@acc9e07a5665e2953fef69e3a25bca36a4a002a5 -
Branch / Tag:
refs/tags/v3.9.1 - Owner: https://github.com/Rul1an
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@acc9e07a5665e2953fef69e3a25bca36a4a002a5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file assay_it-3.9.1-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: assay_it-3.9.1-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 905.6 kB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eceb697cc3dfc1a29f35bd4443656f98761c6adc7267cd280a7764dc0a26fd27
|
|
| MD5 |
ec792540f3c3fbdf36c0f7ffcc906db0
|
|
| BLAKE2b-256 |
616f60228c551b67a24f99f3e93a28e8ff7c7b054d16cff89d9278574bb19680
|
Provenance
The following attestation bundles were made for assay_it-3.9.1-cp312-cp312-macosx_10_12_x86_64.whl:
Publisher:
release.yml on Rul1an/assay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
assay_it-3.9.1-cp312-cp312-macosx_10_12_x86_64.whl -
Subject digest:
eceb697cc3dfc1a29f35bd4443656f98761c6adc7267cd280a7764dc0a26fd27 - Sigstore transparency entry: 1405547643
- Sigstore integration time:
-
Permalink:
Rul1an/assay@acc9e07a5665e2953fef69e3a25bca36a4a002a5 -
Branch / Tag:
refs/tags/v3.9.1 - Owner: https://github.com/Rul1an
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@acc9e07a5665e2953fef69e3a25bca36a4a002a5 -
Trigger Event:
push
-
Statement type: