Description
Unified diff patches can be applied from Python tooling to modify files programmatically. This is useful for package scripts, code generation, migrations, and automation that needs to apply text changes.
It is a developer utility/library. Applying patches changes real files, so users should inspect diffs and use version control or backups before patching important trees.