{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development"}],"enrichment":{"capability":"Provides a unified Abstract Syntax Tree representation that works across Python 2 and Python 3 versions, converting between the standard ast module's version-specific trees and a normalized GAST format.","skillfed_tags":["ast-parsing","code-analysis","python-compatibility"],"use_cases":["Building code analysis or refactoring tools that must work with codebases targeting multiple Python versions","Writing AST-based linters or formatters that need a single code path for Python 2 and 3 syntax","Implementing code generation or transpilation that normalizes input AST before processing","Analyzing legacy Python 2 code alongside modern Python 3 code in a unified framework"],"what_it_does":"GAST is a compatibility layer that normalizes Python's Abstract Syntax Tree across different Python versions. It converts version-specific AST output from the standard ast module into a unified representation, then back again if needed. This solves the problem of AST structure differences between Python 2.7 and Python 3.x versions\u2014for instance, how function arguments, exception handlers, and string literals are represented differently across versions.\n\nThe package provides the same API as the standard ast module, with three key additions: gast.parse() produces a normalized tree directly, gast.dump() shows the unified representation, and gast.ast_to_gast() / gast.gast_to_ast() handle bidirectional conversion. It's tested across Python 2.7 through 3.11, making it suitable for tools that need to analyze or transform code written for multiple Python versions without rewriting logic for each version's AST quirks.","worth_installing":"Yes. GAST is a low-friction, actively maintained utility with no dependencies, a permissive license, and zero known vulnerabilities. Install it if you're building tools that parse or analyze Python code across multiple versions and need to avoid version-specific AST branching logic."},"id":"gast","links":{"html":"https://skillfed.io/packages/gast","md":"https://skillfed.io/packages/gast.md","pypi":"https://pypi.org/project/gast/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-29","license_spdx":null,"license_treatment":"permissive","name":"gast","python_support":"supports_current","summary":"Python AST that abstracts the underlying Python version"},"popularity":{"monthly_downloads":20135601,"position":1044,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.7.0"}
