typed-ast

a fork of Python 2 and 3 ast modules with type comment support

Apache License 2.0 35 个版本 Python >=3.6
David Fisher
安装
pip install typed-ast
poetry add typed-ast
pipenv install typed-ast
conda install typed-ast
描述

=========== End of life

This project is no longer maintained.

Use the standard library ast module instead. See https://github.com/python/typed_ast/issues/179.

=========== Description

typed_ast is a Python 3 package that provides a Python 2.7 and Python 3 parser similar to the standard ast library. Unlike ast below Python 3.8, the parsers in typed_ast include PEP 484 type comments and are independent of the version of Python under which they are run. The typed_ast parsers produce the standard Python AST (plus type comments), and are both fast and correct, as they are based on the CPython 2.7 and 3.7 parsers.

Note: The ast module of Python 3.8+ supports all features of typed_ast. typed_ast does not support parsing code that uses syntax introduced in Python 3.8 onwards. We recommend using ast on Python 3.8 or above.

版本列表
1.5.5 2023-07-04
1.5.4 2022-05-21
1.5.3 2022-04-16
1.5.2 2022-01-24
1.5.1 2021-12-03
1.5.0 2021-11-12
1.4.3 2021-04-11
1.4.2 2020-12-30
1.4.1 2020-01-13
1.4.0 2019-06-04
1.3.5 2019-04-28
1.3.4 2019-04-18
1.3.2 2019-04-17
1.3.1 2019-02-06
1.3.0 2019-01-30
1.2.0 2019-01-14
1.1.2 2019-01-15
1.1.1 2018-12-17
1.1.0 2017-07-18
1.0.4 2017-06-14
1.0.3 2017-04-10
1.0.2 2017-03-06
1.0.1 2017-02-17
1.0.0 2017-02-13
0.6.3 2017-01-06
0.6.2 2017-01-05
0.6.1 2016-09-30
0.6.0 2016-09-27
0.5.6 2016-08-25
0.5.5 2016-06-24
0.5.4 2016-06-23
0.5.3 2016-06-22
0.5.2 2016-06-01
0.5.1 2016-06-01
0.5 2016-04-28