Python module to decompile AST (Abstract Syntax Tree) back into Python source code. Current version 0.8.0, requires Python >=3.8. Releases are occasional, primarily maintained by the author.
pip install ast-decompilerVerified import paths — ran on the pinned version, not inferred.
Parses Python code into AST using the standard library, then decompiles it back to Python source code using ast_decompiler.
Use `from ast_decompiler import decompile` or `import ast_decompiler`.
Always parse code with ast.parse() first: tree = ast.parse(code); decompile(tree).
Use `decompile` instead.
Run `pip install ast-decompiler`, ensure you are in the correct virtual environment or use `pip3` if needed.
Use `decompile` instead: `from ast_decompiler import decompile`.
Parse the string first with `ast.parse()`: `tree = ast.parse(code)`, then `decompile(tree)`.
No dependency data recorded yet.