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.
Release files for astviewer 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| astviewer-1.1.4.tar.gz | 18.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| astviewer-1.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.6 kB
Release files / astviewer-1.1.4.tar.gz
| Download URL | astviewer-1.1.4.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c069fb4c8180dfa7a9a8c7ffb17b3b9d0cdadaf9440fdfd606aaa17dc51d9211
|
|
BLAKE2b-256 checksum How to use checksums |
b70026e31ebbb35c0af79310123154153b82879c118f0c458d2e6ac3b3dc7663
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / astviewer-1.1.4-py3-none-any.whl
| Download URL | astviewer-1.1.4-py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
771f658ac1dbc6fcb41b1ff8e1ab0aaf49ff98f126449875449940fbc5f3cc56
|
|
BLAKE2b-256 checksum How to use checksums |
993af3c16616447e36d3fe9295de2a19c003ec2876cb784b20efc18c272998ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|