Utilities Libraries
General purpose utility libraries for common scripting tasks.
Libraries
| Library | Description |
|---|---|
| scriptling.console | Console input/output functions (TUI) |
| scriptling.container | Container lifecycle management for Docker, Podman, and Apple Containers |
| scriptling.nomad | HashiCorp Nomad client covering CSI volumes and jobs |
| scriptling.grep | Fast file content search with regex or literal patterns |
| scriptling.find | Find files and directories by name, type, mtime, and size |
| scriptling.csv | CSV parsing and formatting (string-based) |
| scriptling.xml | XML parsing and formatting (dict-based, string-only) |
| scriptling.sed | In-place file content replacement with literal strings or regex patterns |
| scriptling.secret | Resolve secrets through host-configured provider aliases |
| scriptling.wait_for | Wait for resources to become available |
| scriptling.toon | TOON (Token-Oriented Object Notation) encoding/decoding |
| scriptling.similarity | Text similarity utilities including fuzzy search and MinHash |
| scriptling.template | Go-powered template rendering (HTML and text) |
| scriptling.markdown | Markdown to HTML conversion (GitHub Flavored Markdown) |
Quick Start
import scriptling.grep as grep
# Find all TODO comments in Python files
matches = grep.pattern(r"\bTODO\b", "./src", recursive=True, glob="*.py")
for m in matches:
print(f"{m['file']}:{m['line']}: {m['text']}")See Also
- Provisioning - File and directory provisioning libraries
- Runtime - Background tasks, HTTP, and storage
- Libraries - Full library reference index
- Security Guide - Security guidance for host-provided libraries