Skip to main content

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

Project 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.1.tar.gz (252.3 kB view hashes)

Uploaded source

Built Distributions

typed_ast-1.5.1-cp310-cp310-win_amd64.whl (165.0 kB view hashes)

Uploaded cp310

typed_ast-1.5.1-cp39-cp39-win_amd64.whl (165.1 kB view hashes)

Uploaded cp39

typed_ast-1.5.1-cp38-cp38-win_amd64.whl (164.1 kB view hashes)

Uploaded cp38

typed_ast-1.5.1-cp37-cp37m-win_amd64.whl (161.3 kB view hashes)

Uploaded cp37

typed_ast-1.5.1-cp36-cp36m-win_amd64.whl (161.3 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