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.1.tar.gz (15.8 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.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: VisAST-0.1.1.tar.gz
  • Upload date:
  • Size: 15.8 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.1.tar.gz
Algorithm Hash digest
SHA256 194c478511ff3b750a5685eda322c579ac694df67936f1815cf05d1fee99b56c
MD5 034ce7068f395a8cf30dde11cc36d4ac
BLAKE2b-256 679bf0829afeeb1c01aafbf61210c70fa4405e964e5ca383d2a7eb3c0a72d37a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: VisAST-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0990467412637342f3d0cf7ec5d954b3c9430d37b96a2a571519a5c06fcc700
MD5 423cb38cc0977ed1f002fe1529bf4a8f
BLAKE2b-256 fd4c6a72ac4e7c9f848a64a7cacaa2ec74b2e6940a3471789e139f0e90428ec1

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