larzstatuscard
A clean, branded status-alert email, ready to send.
A color-coded status badge, heading and intro, one log block per section, and a CTA button - modeled on a real production ops-alert template, but de-branded: name, accent colors, footer text and the CTA are all config, not hardcoded, so any app can drop its own identity in. Hand the returned HTML straight to smtp.send() or email.build().
larzscript pkg install statuscard
What you get
- ALERT / OK / INFO badges, any status falls back gracefully
- Brand name, accent colors and CTA - all config
- One <pre> log block per section, XSS-safe by default
- Pairs directly with email + smtp
Try it
import "statuscard" as statuscard
let brand = {"name": "Larz Ops", "accent": "#5b6cff", "accent2": "#9b5bff",
"tag": "srv66 monitor", "cta_text": "Open health", "cta_href": "https://example.com/health",
"footer": "Automated backend monitor."}
let body = statuscard.build(brand, "Disk usage high", "root partition is over 90% full.",
[{"title": "df -h (2)", "lines": ["/dev/sda1 92% /", "/dev/sdb1 40% /data"]}], "ALERT")
print(len(body), "chars")
print("has ALERT badge:", body.find("ALERT") != -1)
print("has CTA:", body.find("Open health") != -1)Output
2014 chars has ALERT badge: true has CTA: true
Why it's in the Larz Stack
larzstatuscard is a real Larzscript package (larzscript pkg install statuscard) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.