Kiwi 🥝¶
Kiwi is a modern, lightweight scripting language built for expressiveness and utility.
Getting Started¶
Language Reference¶
Functions¶
Control Flow¶
- Control Structures —
if,case,when, ternary, truthiness - Loops —
for,while,repeat,break,next - Generators
- Error Handling
Collections & Data Types¶
Object-Oriented Programming¶
Modules & I/O¶
Standard Library¶
cli— Output helpers, tables, progress bars, prompts, and argument parsing for CLI apps.collections— Specialized collection types, includingHeapandSet.compress— Functions for compression and decompression.console— An interface that wraps core I/O operations.crypto— Cryptographic functions like MD5 and SHA-2.csv— Functions for parsing CSV data.env— For interacting with environment variables.fio— Functions for file system operations.http— Functions for HTTP/HTTPS requests.iter— An explicit iterator pattern for safely traversing lists.math— Common mathematical functions and utilities.path— Contains the definition for thePathstruct.pipeline— A DSL for building named, step-based data pipelines with hooks and error recovery.reflector— Reflection tools, includingCallable.socket/tls— Low-level asynchronous TCP and TLS networking.stdin— Functions for reading from standard input.string— String manipulation and transformation utilities.protobuf— Protocol Buffer (proto3) binary encoding and decoding.sqlite— SQLite database access via theSqliteDbstruct.sys— For executing shell commands.task— Asynchronous task management, includingChannel.tester— A simple unit testing framework.time— Time and date utilities.yaml— YAML 1.2 parser and serializer.