{"library":"gast","type":"library","category":null,"description":"gast provides a compatibility layer between the Abstract Syntax Trees (AST) of various Python versions (including Python 2 and Python 3), offering a homogeneous API compatible with the standard library `ast` module. It abstracts away version-specific differences in the AST structure, making it easier to write tools that work across multiple Python versions. The library is currently at version 0.7.0 and remains actively maintained.","language":"python","status":"active","version":"0.7.0","tags":["AST","Python2","Python3","compatibility","parser","abstract syntax tree"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install gast","imports":["import gast","from gast import Name, Constant","gast.parse(code)"]}],"homepage":null,"github":"https://github.com/serge-sans-paille/gast","docs":null,"changelog":null,"pypi":"https://pypi.org/project/gast/","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.02,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/gast/compatibility"}}