sys
sys - the operating system, as a command-line program needs it, grouped by
concern: system, security, observability, distribution. Every file is also
re-exported under a flat name (sys.dirs, sys.log, ...).
The module imports only std. Nothing here starts a thread, opens a socket, or writes a
file unless the caller calls a function that says it does.
Declarations
system | Directories, processes, signals, files, daemons: the OS as a program uses it. |
security | Secure memory, path sandboxing, OAuth, WebAuthn. |
ssh | SSH keys, signatures, and a server for terminal programs. |
web | A terminal in the browser: a page and a WebSocket server for terminal programs. |
observability | Logging, crash reports, phase timing, trace context, opt-in telemetry. |
distribution | Semantic versions, self-update, package manifests. |