gast: Generic Python AST

JSON →
library 0.7.0 ·python
verified Jun 9, 2026 install

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.

total hits 24
actors 6 distinct systems
last hit 1d ago GPTBot
GPTBot
4
Amazonbot
4
MetaBot
4
Script
2
Search engines
1
Humans
6

top countries 🇺🇸 United States · 🇨🇦 Canada · VN · 🇩🇪 Germany · 🇬🇧 United Kingdom