Python for DevOps
You're viewing a free preview. Sign in free to read every script.
Why this exists Configuration, inventories, logs, reports, state files: a DevOps script is mostly files . The mistakes are predictable and expensive: a config file half written when the script crashed, a token file…
Python for DevOps: Files, pathlib, Atomic Writes, Permissions, JSON, CSV, TOML, INI and YAML
Read and write the files DevOps scripts live on: pathlib instead of string paths, listing and finding files, atomic writes, secret file permissions, CSV, TOML, INI and YAML (and its surprises), temporary files, old-file detection and the encoding problems that arrive with files from other tools.
Sign in free to read this script, along with the rest of the library.
Sign in free