{"library":"astor","type":"library","category":null,"description":"astor is a Python library designed for easy manipulation of Python source code via its Abstract Syntax Tree (AST). It provides functionality to round-trip an AST back to Python source, pretty-print ASTs for debugging, and offers both recursive and non-recursive tree traversal mechanisms. It focuses on generating readable code from modified ASTs. The current version is 0.8.1, released in late 2019, and its release cadence is very slow, indicating a maintenance-only status.","language":"python","status":"maintenance","version":"0.8.1","tags":["AST","parser","code generation","static analysis","code transformation"],"last_verified":"Sat May 23","install":[{"cmd":"pip install astor","imports":["import astor","from astor import to_source","from astor import parse_file","from astor import dump_tree","from astor import SourceGenerator"]}],"homepage":null,"github":"https://github.com/berkerpeksag/astor","docs":null,"changelog":null,"pypi":"https://pypi.org/project/astor/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.5,"avg_import_s":0.03,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/astor/compatibility"}}