ast-decompiler

Python module to decompile AST to Python code


Keywords
ast, decompiler
License
PSF-2.0
Install
pip install ast-decompiler==0.7.0

Documentation

ast_decompiler

ast_decompiler is a module for generating Python code given an AST.

A usage example:

>> import ast
>> from ast_decompiler import decompile

>> decompile(ast.parse('(a + b) * c'))
(a + b) * c

This module supports Python 3.6 through 3.11.