astviewer
Graphical User Interface for viewing Python Abstract Syntax Trees.
Installation:
To install Astviewer use pip:
%> pip install astviewer
It should automatically install PyQt5 as well.
Usage:
Command line example:
%> astviewer 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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
astviewer-1.1.4.tar.gz
(18.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
astviewer-1.1.4-py3-none-any.whl
(24.2 kB
view details)
File details
Details for the file astviewer-1.1.4.tar.gz.
File metadata
- Download URL: astviewer-1.1.4.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c069fb4c8180dfa7a9a8c7ffb17b3b9d0cdadaf9440fdfd606aaa17dc51d9211
|
|
| MD5 |
cbfe6663995260af446a491d62722925
|
|
| BLAKE2b-256 |
b70026e31ebbb35c0af79310123154153b82879c118f0c458d2e6ac3b3dc7663
|
File details
Details for the file astviewer-1.1.4-py3-none-any.whl.
File metadata
- Download URL: astviewer-1.1.4-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
771f658ac1dbc6fcb41b1ff8e1ab0aaf49ff98f126449875449940fbc5f3cc56
|
|
| MD5 |
28e90af8cd56df632e60952040177e6f
|
|
| BLAKE2b-256 |
993af3c16616447e36d3fe9295de2a19c003ec2876cb784b20efc18c272998ad
|