Skip to main content

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"],
    organization_id=os.environ["TRIGGUARD_ORG_ID"],
    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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trigguard-0.2.1.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trigguard-0.2.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file trigguard-0.2.1.tar.gz.

File metadata

  • Download URL: trigguard-0.2.1.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for trigguard-0.2.1.tar.gz
Algorithm Hash digest
SHA256 79e47ec6f11931297a07db23c4b07691dbd797bdb018381067dc37058992d081
MD5 5d6886f536412a48a5dcf05718a517c6
BLAKE2b-256 6f436efc20b00321f95c956c6f71af59df0282359e7fe12f0ebed026e28356bf

See more details on using hashes here.

File details

Details for the file trigguard-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: trigguard-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for trigguard-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83f5e451dcf8b274332382b212f29f80aed49aa48949e17e676c529307499394
MD5 c1f944f407b9c160a61a12b6836b9b66
BLAKE2b-256 0c45a988258147a97ed82b2738dfc64fe6e2dc50bd9b23c5bc1e1806e69f12ba

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.2

2 files

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page