TrigGuard product SDK — authorize, verify, attest, audit, explain, coach via POST /execute
Project description
TrigGuard (Python)
Pre-execution authorization for AI and automation — thin client for POST /execute, offline receipt verification, and the six product verbs.
Install
pip install trigguard
Python 3.9+ · depends on cryptography for offline Ed25519 verify only.
Quick start
import os
from trigguard import TrigGuard
tg = TrigGuard(
api_key=os.environ["TRIGGUARD_API_KEY"],
gateway_url=os.environ.get("TRIGGUARD_GATEWAY_URL", "https://api.trigguardai.com"),
)
result = tg.authorize(surface="deploy.release", actor="my-service")
trusted = tg.verify(result["receipt"]) if result.get("receipt") else False
print(result["decision"], trusted)
Product API (parity with Node)
| Verb | Method |
|---|---|
| Authorize | tg.authorize(surface=..., actor=..., context=...) |
| Verify | tg.verify(receipt) |
| Attest | tg.attest(action=..., surface=...) |
| Audit | tg.audit(execution_id=...) |
| Explain | tg.explain(execution_id) |
| Coach | tg.coach(intent=...) |
Factory: create_trigguard() · Legacy: Client.execute()
Adoption
Authority
Canonical PyPI source: sdk/python/ only. See docs/infrastructure/PYTHON_SDK_AUTHORITY.md.
PyPI publish
Parity work targets 0.2.0. Publish is gated on at least one Node design partner — build and validate locally until then.
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 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 trigguard-0.2.0.tar.gz.
File metadata
- Download URL: trigguard-0.2.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6288c0962c1294ecba77a969c48a38203b6a74ad42d82814ba9f564bb4e4b8a9
|
|
| MD5 |
cb7643416a6c0e69b6c9570f21623ce7
|
|
| BLAKE2b-256 |
20f764b9b523c80b48e194843679e5efbf2517479c7fa01b064423df46efeab2
|
Provenance
The following attestation bundles were made for trigguard-0.2.0.tar.gz:
Publisher:
pypi-publish.yml on TrigGuard-AI/TrigGuard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trigguard-0.2.0.tar.gz -
Subject digest:
6288c0962c1294ecba77a969c48a38203b6a74ad42d82814ba9f564bb4e4b8a9 - Sigstore transparency entry: 1825687737
- Sigstore integration time:
-
Permalink:
TrigGuard-AI/TrigGuard@cabaae28d6d428dbc719a52772fef5f2990345b6 -
Branch / Tag:
refs/heads/fix/pypi-publish-build - Owner: https://github.com/TrigGuard-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@cabaae28d6d428dbc719a52772fef5f2990345b6 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file trigguard-0.2.0-py3-none-any.whl.
File metadata
- Download URL: trigguard-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
057a848d583ba457daac74989d2fdc597c9379ddc97c7e1c65e55e3560d526cf
|
|
| MD5 |
20958e972ebd4904776927fa3ec7afa9
|
|
| BLAKE2b-256 |
20317958e4cf448bbee61d2e2f6778dbe42e466b78cae3ca0da4a083206f1a70
|
Provenance
The following attestation bundles were made for trigguard-0.2.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on TrigGuard-AI/TrigGuard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trigguard-0.2.0-py3-none-any.whl -
Subject digest:
057a848d583ba457daac74989d2fdc597c9379ddc97c7e1c65e55e3560d526cf - Sigstore transparency entry: 1825687797
- Sigstore integration time:
-
Permalink:
TrigGuard-AI/TrigGuard@cabaae28d6d428dbc719a52772fef5f2990345b6 -
Branch / Tag:
refs/heads/fix/pypi-publish-build - Owner: https://github.com/TrigGuard-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@cabaae28d6d428dbc719a52772fef5f2990345b6 -
Trigger Event:
workflow_dispatch
-
Statement type: