Skip to main content

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


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.0.tar.gz (11.9 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.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

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

Hashes for trigguard-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6288c0962c1294ecba77a969c48a38203b6a74ad42d82814ba9f564bb4e4b8a9
MD5 cb7643416a6c0e69b6c9570f21623ce7
BLAKE2b-256 20f764b9b523c80b48e194843679e5efbf2517479c7fa01b064423df46efeab2

See more details on using hashes here.

Provenance

The following attestation bundles were made for trigguard-0.2.0.tar.gz:

Publisher: pypi-publish.yml on TrigGuard-AI/TrigGuard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for trigguard-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 057a848d583ba457daac74989d2fdc597c9379ddc97c7e1c65e55e3560d526cf
MD5 20958e972ebd4904776927fa3ec7afa9
BLAKE2b-256 20317958e4cf448bbee61d2e2f6778dbe42e466b78cae3ca0da4a083206f1a70

See more details on using hashes here.

Provenance

The following attestation bundles were made for trigguard-0.2.0-py3-none-any.whl:

Publisher: pypi-publish.yml on TrigGuard-AI/TrigGuard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page