Skip to main content

Building and visualising Abstract Syntax Trees for Python code.

Project description

VAST

VAST - Visualise Abstract Syntax Trees for Python.

VAST 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 vast.vast import Vast

v = Vast("./helloworld.py")
# or
v = Vast()
ast = v.generateASTFromPath("./helloworld.py")
v.visualiseASTGraph(ast)
# or
pyString = "print(\"Hello, World!\")"
ast = v.generateASTFromString(pyString)
v.visualiseASTGraph(ast)
# or
pyURL = "https://example.com/helloworld.py"
ast = v.generateASTFromURL(pyURL)
v.visualiseASTGraph(ast)

Or (if installed from source, rather than pip) from the terminal:

python vast.py ./helloworld.py

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

VisAST-0.1.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

VisAST-0.1.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file VisAST-0.1.0.tar.gz.

File metadata

  • Download URL: VisAST-0.1.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/21.8.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.5

File hashes

Hashes for VisAST-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c1f53bd462749347c421ddaf15f24474a27d8865e0ef06225b088155cf9594fe
MD5 23da9389d9f416cdf17ac4835fc4d36a
BLAKE2b-256 a955c3eb4de46f259831a44de73aeb18c085c79b3bce443c878a601984834469

See more details on using hashes here.

File details

Details for the file VisAST-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: VisAST-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/21.8.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.5

File hashes

Hashes for VisAST-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9239ec15c27bf848960ab854f362d4071743afd78ca489ae6a39624c28944e42
MD5 275d04ca5b6e3a9c31ab566255837c17
BLAKE2b-256 f1bca78f5f9dc1ab770791f85a397ce61804249642bafdacb0a2d5fc707b8bbb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page