VisAST - Visualise Abstract Syntax Trees for Python.
VisAST generates ASTs for a given Python script and builds visualisations of them.
Install from PyPI Here!
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)
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.