Back to all

python-ast-mass-edit

by Arthur Ryzhak

00Feb 7, 2026Visit Source
Systematic workflow for AST-based mass edits in Python codebases. Use when editing 3+ files with structural changes (decorators, function signatures, imports, class definitions). Includes pre-surveying with grep/pyright, idempotent transformations, and validation protocol. NOT for simple string replacements or <5 instances.