The standard library ships 22 canonical modules. They are not loaded by default - import them when you need them.
| Module | Import | Purpose |
|---|---|---|
| Bytes | import bytes | Binary data, encoding/decoding (base64, hex) |
| CLI | import cli | Command-line argument parsing |
| Collections | from collections import ... | List, dict, and set operations (map, filter, reduce, keys, values, etc.) |
| Crypto | import crypto | Hashing, encryption, HMAC, signatures, encoding |
| CSV | import csv | RFC 4180 CSV parsing and writing |
| Decimal | import decimal | Arbitrary-precision decimal arithmetic |
| Environment | import env | Environment variable access |
| Filesystem | import fs | File I/O with typed paths and Result returns |
| HTTP | import http | HTTP client (GET, POST, PUT, DELETE) and static file server |
| JSON | import json | Tree API, streaming, mutable building |
| JSON Schema | import json_schema | Schema-based JSON validation |
| Logging | import log | Log level, sink, capture |
| Math | import math | Trigonometry, logarithms, rounding, constants |
| Money | import money | Currency-safe monetary arithmetic |
| Path | import path | Pure path manipulation utilities |
| Process | import process | Subprocess execution, argv, exit, cwd |
| Random | import random | Random integer generation |
| Scanner | import scanner | Text scanning and pattern matching |
| Text | import text | String utilities (split, join, trim, pad, etc.) |
| Time | import time | Instant, Duration, Clock. Typed time API |
| URL | import url | URL parsing, building, and query encoding |
| UUID | import uuid | UUID v4 generation, parsing, and validation |