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

typed_ast-1.5.5-cp311-cp311-musllinux_1_1_x86_64.whl (882.0 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

typed_ast-1.5.5-cp311-cp311-musllinux_1_1_aarch64.whl (898.1 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ ARM64

typed_ast-1.5.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (860.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

typed_ast-1.5.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (878.4 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

typed_ast-1.5.5-cp311-cp311-macosx_11_0_arm64.whl (208.2 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

typed_ast-1.5.5-cp311-cp311-macosx_10_9_x86_64.whl (223.3 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

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

Uploaded CPython 3.10 Windows x86-64

typed_ast-1.5.5-cp310-cp310-musllinux_1_1_x86_64.whl (839.3 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

typed_ast-1.5.5-cp310-cp310-musllinux_1_1_aarch64.whl (855.0 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ ARM64

typed_ast-1.5.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (824.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

typed_ast-1.5.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (842.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

typed_ast-1.5.5-cp310-cp310-macosx_11_0_arm64.whl (208.3 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

typed_ast-1.5.5-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.5-cp39-cp39-win_amd64.whl (139.5 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

typed_ast-1.5.5-cp39-cp39-musllinux_1_1_x86_64.whl (837.3 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

typed_ast-1.5.5-cp39-cp39-musllinux_1_1_aarch64.whl (853.1 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ ARM64

typed_ast-1.5.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (823.4 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

typed_ast-1.5.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (840.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

typed_ast-1.5.5-cp39-cp39-macosx_11_0_arm64.whl (208.3 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

typed_ast-1.5.5-cp39-cp39-macosx_10_9_x86_64.whl (223.3 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

typed_ast-1.5.5-cp38-cp38-musllinux_1_1_x86_64.whl (858.3 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

typed_ast-1.5.5-cp38-cp38-musllinux_1_1_aarch64.whl (875.6 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ ARM64

typed_ast-1.5.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (840.0 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

typed_ast-1.5.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (861.0 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

typed_ast-1.5.5-cp38-cp38-macosx_11_0_arm64.whl (208.2 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

typed_ast-1.5.5-cp38-cp38-macosx_10_9_x86_64.whl (223.0 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

typed_ast-1.5.5-cp37-cp37m-musllinux_1_1_x86_64.whl (796.7 kB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

typed_ast-1.5.5-cp37-cp37m-musllinux_1_1_aarch64.whl (809.4 kB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ ARM64

typed_ast-1.5.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (778.3 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

typed_ast-1.5.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (793.5 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

typed_ast-1.5.5-cp37-cp37m-macosx_10_9_x86_64.whl (222.3 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

typed_ast-1.5.5-cp36-cp36m-musllinux_1_1_x86_64.whl (802.3 kB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

typed_ast-1.5.5-cp36-cp36m-musllinux_1_1_aarch64.whl (814.5 kB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ ARM64

typed_ast-1.5.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (777.6 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

typed_ast-1.5.5-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (793.1 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

typed_ast-1.5.5-cp36-cp36m-macosx_10_9_x86_64.whl (221.8 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