Runez is a friendly, pure Python convenience library offering utilities for common operations such as file manipulation, process execution, and logging that developers often find themselves rewriting. It stands alone without external dependencies, focusing on robust handling of edge cases and providing clear error reporting. The current version is 5.7.1, with a regular release cadence.
pip install runezVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to execute shell commands and perform basic file operations using `runez`. It shows handling both successful and potentially failing commands, as well as writing to and reading from a file.
Pass `fatal=False` or `default=None` (or another default value) to functions where you want to explicitly handle potential failures without an exception.
Review the `logger` parameter's documentation for specific functions and configure `runez.log.setup()` to match your desired logging behavior and verbosity.
Explicitly manage `runez.DRYRUN` or pass `dryrun=False` to functions to ensure actions are performed when not in a testing context.
No dependency data recorded yet.