VisAST
VisAST - Visualise Abstract Syntax Trees for Python.
VisAST generates ASTs for a given Python script and builds visualisations of them.
Install
Install from PyPI Here!
How to use
From a python script:
from visast import generate, visualise
ast = generate.fromPath("./helloworld.py")
visualise.graph(ast)
# or
pyString = "print(\"Hello, World!\")"
ast = generate.fromromString(pyString)
visualise.graph(ast)
# or
pyURL = "https://example.com/helloworld.py"
ast = generate.fromURL(pyURL)
visualise.graph(ast)
Like what you see? Buy me a snack
If you want to see more of what I do, you can visit my blog.
If you want to donate to my development work by buying me a snack, I use PayPal.Me.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
VisAST-1.0.1.tar.gz
(16.8 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
VisAST-1.0.1-py3-none-any.whl
(16.3 kB
view details)
File details
Details for the file VisAST-1.0.1.tar.gz.
File metadata
- Download URL: VisAST-1.0.1.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba4af569de5ec933a22e04b689ad396a4cd8308718dd49ebf94e8b8ba1be311e
|
|
| MD5 |
5dc0724d7bc4c0493f40dce503cfcce9
|
|
| BLAKE2b-256 |
f8cbed004053bc53d0434a9ff9ab2770d343344a19752f1ffb8ade36c5e0c034
|
File details
Details for the file VisAST-1.0.1-py3-none-any.whl.
File metadata
- Download URL: VisAST-1.0.1-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
714e4c0cda6725149fbb2ac0e1f73a1638abc9c2c05457f95160dd8778d1f403
|
|
| MD5 |
0780591c0087b81b224bd4b70635c38d
|
|
| BLAKE2b-256 |
c52b99eefa12916695de2e34c2e112e4b999de39355a3d97c0488d0112cec346
|