LinuxCommandLibrary

textual-astview

Python AST viewer for the terminal

TLDR

Explore the AST of a Python file
$ astare [my_script.py]
copy

SYNOPSIS

astare python-file

DESCRIPTION

textual-astview is a command-line tool for displaying and exploring the Python Abstract Syntax Tree. It loads a Python source file and shows its AST in an interactive tree alongside the source code.

HISTORY

textual-astview was created by Dave Pearson (davep) and is written in Python using the Textual framework.

SEE ALSO

python(1), pyflakes(1), ast-grep(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard