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 CPython 3.10 Windows x86-64

typed_ast-1.5.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (877.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

typed_ast-1.5.1-cp310-cp310-macosx_11_0_arm64.whl (207.6 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

typed_ast-1.5.1-cp310-cp310-macosx_10_9_x86_64.whl (223.3 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

typed_ast-1.5.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (875.5 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

typed_ast-1.5.1-cp39-cp39-macosx_11_0_arm64.whl (207.7 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

typed_ast-1.5.1-cp39-cp39-macosx_10_9_x86_64.whl (223.4 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

typed_ast-1.5.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (897.2 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

typed_ast-1.5.1-cp38-cp38-macosx_11_0_arm64.whl (207.2 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

typed_ast-1.5.1-cp38-cp38-macosx_10_9_x86_64.whl (222.6 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

typed_ast-1.5.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (843.7 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

typed_ast-1.5.1-cp37-cp37m-macosx_10_9_x86_64.whl (221.5 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

typed_ast-1.5.1-cp36-cp36m-win_amd64.whl (161.3 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

typed_ast-1.5.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (831.7 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

typed_ast-1.5.1-cp36-cp36m-macosx_10_9_x86_64.whl (221.5 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

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