A collection of handy helper functions for Python's AST module. Provides utilities to simplify AST manipulation, node comparison, pattern matching, and source code reconstruction. Current version 0.3.3 requires Python >=3.6 and is in maintenance mode with no recent releases since 2023.
pip install astatineVerified import paths — ran on the pinned version, not inferred.
Basic usage: format AST nodes, compare structures, and convert AST back to source code.
Consider using Python's built-in ast module when possible, or switch to active alternatives like 'astor' or 'typed_ast'.
Use ast.unparse (Python 3.9+) for reliable output, or thoroughly test astatine's unparse on your ASTs.
Prefer ast.walk for standard traversal unless you specifically need astatine's behavior.