Astviewer
Python Abstract Syntax Tree viewer in Qt
Install / Use
/learn @titusjan/AstviewerREADME
astviewer
Graphical User Interface for viewing Python Abstract Syntax Trees.

Installation:
First install PyQt or
PySide. Either one is fine,
AstViewer automatically detects which Qt bindings are installed. If both bindings are installed
it prefers PyQt over PySide (You can force AstViewer to use a certain binding by setting the
QT_API environment variable to pyqt5, pyqt4, pyside or pyside2.)
If you are using the Anaconda Python distribution it is recommended to install PyQt as follows:
%> conda install pyqt
or, for PySide use
%> conda install pyside2
If you are not using the Anaconda Python distro, you can install the dependencies with Pip as follows:
%> pip3 install pyqt5
or
%> pip install pyside2
There is no conda recipe for the AstViewer, but you can use Pip to install it even if you use Anaconda. To install it type:
%> pip install astviewer
Usage:
Command line example:
%> pyastviewer myprog.py
Examples to use from within Python:
>>> from astviewer.main import view
>>> view(file_name='myprog.py')
>>> view(source_code = 'a + 3', mode='eval')
Further links:
The Green Tree Snakes documentation on ASTs is available for those who find the Python ast module documentation too brief.
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
110.9kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
351.8kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
