API Reference¶
Starkite exposes Go's standard library as type-safe, scriptable Starlark modules. All modules are auto-loaded in every .star script — no import statement, no load() call.
For the auto-loading mechanism and the try_ error pattern that every function supports, see Modules and Language.
Foundations¶
System primitives, control flow, and built-in utilities every script needs.
-
Environment, process info, command execution.
-
Filesystem operations and
Pathobjects. -
Formatted printing —
printf,sprintf,errorf. -
Interactive user input —
confirm,prompt. -
Typed variable access —
var_str,var_int,var_list, … -
Runtime and platform information.
-
Structured logging with slog backend.
-
Testing assertions and helpers.
-
Inventory management — file, list, filter, group_by, merge.
-
Concurrent execution — map, each, exec, worker pools.
-
Retry logic with fixed delay and exponential backoff.
Network¶
Remote services — HTTP and SSH.
Data¶
Database connectivity, encoding, serialization, text processing, and value utilities.
-
SQL databases (SQLite, PostgreSQL, MySQL): query, exec, transactions, batch.
-
JSON encoding, decoding, and file I/O.
-
YAML encoding, decoding, and file I/O.
-
CSV reading, writing, and file I/O.
-
Gzip compression and decompression.
-
ZIP archive reading and writing.
-
Base64 encoding and decoding.
-
Cryptographic hash functions.
-
String utility functions.
-
Regular expression matching and replacement.
-
Go
text/templaterendering. -
Time, duration, and arithmetic.
-
UUID generation.
-
ASCII table rendering.
Cloud¶
Kubernetes and cloud-native resource management — cloud edition (kitecloud or kite).
-
Full Kubernetes API — CRUD, kubectl-equivalents, typed constructors, controllers, webhooks.
AI¶
LLM clients and Model Context Protocol — AI edition (kiteai or kite).