Features

Explore how to get the most out of kstlib through practical, real-world examples.


alerts

Slack, Email channels with throttling and routing.

Alerts
auth

OAuth2, OIDC, PKCE, token storage with SOPS encryption.

Authentication
cache

@cached decorator with memory/file strategies, TTL support.

Cache
cli

Typer-based command-line interface with verbose flags and subcommand groups.

CLI
config

Config-driven with presets, includes, YAML/TOML/JSON support.

Configuration
db

Async SQLite/SQLCipher with connection pooling.

Database
helpers

TimeTrigger for modulo-aligned scheduling (every 4h, every 15m, …).

Helpers
logging

Structured logging with Rich, config-driven presets.

Logging
mail

SMTP, Gmail OAuth2, Resend API, @notify decorator.

Mail
metrics

@metrics, @call_stats, Stopwatch for performance.

Metrics
monitoring

HTML dashboards with typed cells, Jinja2, email delivery.

Monitoring
ops

Session management with tmux and container backends.

Ops
pipeline

Declarative pipeline execution with shell, Python, callable steps.

Pipeline
rapi

Config-driven REST client with HMAC signing, CLI support.

REST API Client
resilience

CircuitBreaker, Heartbeat, Watchdog, RateLimiter.

Resilience
secrets

SOPS, AWS KMS, keyring, environment variable resolution.

Secrets
secure

PathGuardrails path confinement + Argon2id password hashing.

Secure
transform

Bidirectional data transforms (decode, patch, re-encode) with composed patches.

Transform
ui

Panels, Tables, Spinners for beautiful terminal output.

UI Helpers
utils

Formatting, validators, lazy imports, and helpers.

Utilities
websocket

Managed WebSocket with auto-reconnect, proactive control.

WebSocket

Tip

For complete API documentation, see API Reference.