Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typed_ast-1.5.5.tar.gz (252.8 kB view hashes)

Uploaded source

Built Distributions

typed_ast-1.5.5-cp311-cp311-win_amd64.whl (139.3 kB view hashes)

Uploaded cp311

typed_ast-1.5.5-cp310-cp310-win_amd64.whl (139.4 kB view hashes)

Uploaded cp310

typed_ast-1.5.5-cp39-cp39-win_amd64.whl (139.5 kB view hashes)

Uploaded cp39

typed_ast-1.5.5-cp38-cp38-win_amd64.whl (139.4 kB view hashes)

Uploaded cp38

typed_ast-1.5.5-cp37-cp37m-win_amd64.whl (138.4 kB view hashes)

Uploaded cp37

typed_ast-1.5.5-cp36-cp36m-win_amd64.whl (161.0 kB view hashes)

Uploaded cp36

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page