Skip to main content

TrigGuard (Python)

Same product as npm install trigguard. Different language.

pip install trigguard
from trigguard import authorize, verify, receipt, explain, create_client

result = authorize(surface="deploy.release", actor="agent-1")
if result["decision"] == "PERMIT":
    # caller executes
    pass

Decisions: PERMIT | DENY | ESCALATE | SILENCE. This package does not evaluate policy. It calls the TrigGuard gateway.

Product API (parity with Node)

Concept Python JavaScript
Authorize authorize() authorize()
Verify verify() verify()
Receipt receipt receipt
Explain explain() explain()
Client create_client() createClient()
Agent helper create_trigguard() then authorize() createAgent()

Runtime

authorize() → TrigGuard Gateway → compiled policy → PERMIT | DENY | ESCALATE | SILENCE → caller executes

AuthGraph is a separate companion (pip install authgraph). This SDK does not import it.

Python 3.9+ · cryptography for offline Ed25519 verify only.

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.2.tar.gz (18.8 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.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for trigguard-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ad7ad7070b7d9c9df2bcbff1d8e84858ee68d97b597fb38e4a4ee86af0304a8c
MD5 a976eec756fdf7b267857ff9f2f7d7bd
BLAKE2b-256 0915d2a6114adb00f5cb9676e3bf7a646e8489b705c5f0a0ca67897d415c4d4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trigguard-0.2.2-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.13.14

File hashes

Hashes for trigguard-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ed7ebcddc27f8ec8fee24a023e29051a635cc9531e2b4732adb6c432381cad10
MD5 5681eef5bb9e5ef83def89d131803789
BLAKE2b-256 60fbfa6c26bdcb73bf2e00b563eec2c5041154c6df40d5f293b8ff2f8ea11a2c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 files

0.2.1

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