Preventing shock bills made simple

A simple, elegant solution to prevent unexpected cost overruns and shock bills with guard rules.

1
from penultim import PenultimClient, GuardRuleDecision
2

3
RULE_ID = "rule_id"
4

5
with PenultimClient(api_key="pnltm_123abc") as client:
6
    result = client.check(RULE_ID, count=1)
7

8
    if result.decision == GuardRuleDecision.ALLOW:
9
        client.log_event(RULE_ID, count=1)
10
    else:
11
        pass
12

Standard

1,000 Credits /month
+1,000 credits per million API calls
Get Started