Expand description
File I/O utilities for CLI tools
Provides helpers for reading from stdin/file and writing to stdout/file, which is a common pattern in CLI tools that support piping.
Functions§
- read_
input - Read input from stdin (if path is “-”) or from a file
- write_
output - Write output to stdout (if path is None or “-”) or to a file
- write_
stderr - Write output to stderr