gast
Python AST that abstracts the underlying Python version
0.7.0
20M downloads/mo
#1044 most downloaded on PyPI
serge-sans-paille/gast
What this package is like to depend on
Last release 8 months ago
29 Nov 2025
Ships fairly regularly
a new release about every 8 months
This project publishes no release notes
the list below is its commits, not an announcement
Nothing withdrawn
no release was ever pulled
10 years old
24 releases · first in 2016
1 release in the last 12 months
see the full history below
Release timeline
24 releases · Jul 2016 to Nov 2025Releases
latest 24-
0.7.029 Nov 2025Commits, not release notes
This project publishes no release notes. Between
0.6.0and0.7.0there were 18 commits, 17 of them substantive:- Add missing
type_paramsattribute forClassDefnode before Python3.12 (#89) - Initialize ast node with known fields to avoid deprecation warning in Python 3.13
- [ci] Update python 3.7 validation
- Fix gast.get_docstring implementation
- Support [g]ast.get_source_segment
- Initial oss-fuzz integration
- [ci] Normalize testing on 3.13
- Only pass existing attributes as keyword parameters in gast_to_ast
- [ci] Test python 3.14 compatibility
- [ci] Test python 3.14.0
- Make gast.dump more generic across python version
- Support _field_types field for every AST class
- [ci] Upgrade workers for python <= 3.7
- Adjust test incompatible with py2
- Support t-string from python 3.14
- Fix support for TypeVar, TypeVarTupe and ParamSpec
- Update unparser to harmonize output across revisions and handle python 3.12+ features
- Add missing
-
0.6.027 Jun 2024Commits, not release notes
This project publishes no release notes. Between
0.5.5and0.6.0there were 2 commits, 1 of them substantive:- Harmonize gast.dump behavior across versions, following py3.13 behavior
-
0.5.525 Jun 2024Commits, not release notes
This project publishes no release notes. Between
0.5.4and0.5.5there were 11 commits, 10 of them substantive:- Support Type aliases from Python 3.12
- Update CI configuration for python 3.12 (and 2.7!)
- Support py 3.12 type parameters
- Reflect AST changes to README
- Update unparser for py 3.12 and setup minimal testing
- Optimize node constructors
- Document ExceptHandler.name change
- Slightly speedup gast node creation
- Upgrade to py3.13 support
- Provide a bug and security bug section in the README
-
0.5.429 Apr 2023Commits, not release notes
This project publishes no release notes. Between
0.5.3and0.5.4there were 5 commits, 4 of them substantive:- Restore python2 testing and support
- Add support for Python 3.11 and test 3.12-dev
- Support match statement from python 3.10
- Support TryStar from python 3.11
-
0.5.313 Nov 2021Commits, not release notes
This project publishes no release notes. Between
0.5.2and0.5.3there were 3 commits, 2 of them substantive:- Advertise version number
- Support gast.unparse
-
0.5.202 Aug 2021Commits, not release notes
This project publishes no release notes. Between
0.5.1and0.5.2there were 2 commits, 1 of them substantive:- Test field count more accurately
-
0.5.123 Jul 2021Commits, not release notes
This project publishes no release notes. Between
0.5.0and0.5.1there were 3 commits, 2 of them substantive:- Cleanup and optimize the way gast builds its AST
- Support NamedExpr
-
0.5.028 Jun 2021Commits, not release notes
This project publishes no release notes. Between
0.4.0and0.5.0there were 9 commits, 5 of them substantive:- Separate linting toxenv from testing toxenv
- Fix handling of ast.Assign
- Update readme - gast is tested on py39
- Support AST change for 3.10
- Move validation from travis to github actions
-
0.4.007 Aug 2020Commits, not release notes
This project publishes no release notes. Between
0.3.3and0.4.0there were 3 commits, 1 of them substantive:- Support Python 3.9
-
0.3.319 Jan 2020Nothing published for this version
-
0.3.214 Sep 2019Nothing published for this version
-
0.3.108 Sep 2019Nothing published for this version
-
0.3.007 Sep 2019Nothing published for this version
-
0.2.213 Jan 2019Nothing published for this version
-
0.2.1.post113 Jan 2019Nothing published for this version
-
0.2.1.post008 Jan 2019Nothing published for this version
-
0.2.106 Jan 2019Nothing published for this version
-
0.2.003 Nov 2017Nothing published for this version
-
0.1.501 Jun 2017Nothing published for this version
-
0.1.407 Feb 2017Nothing published for this version
-
0.1.326 Aug 2016Nothing published for this version
-
0.1.226 Aug 2016Nothing published for this version
-
0.1.126 Aug 2016Nothing published for this version
-
0.118 Jul 2016Nothing published for this version