Skip to main content

Mr Wensleydale. Query the AST.

Project description

Mr Wensleydale. Query Python, get the AST as JSON.

Why?

The AST, or abstract syntax tree, is a set of data structures that describe your python script. By exposing the AST to json, it can be treated as data, which means it can be reported on.

Sample use cases include:

  • Visualizing the routing tree of a web application.

  • Visualizing a class hierarchy.

  • Auditing large code bases using queries.

Support

Currently only Python 3.5 is supported.

Upcoming features:

  • Recursive imports: Trace into calls.

  • Pythonic paths: Use python dotted paths instead of file paths.

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

wensleydale-0.1.0.tar.gz (55.1 kB view hashes)

Uploaded Source

Built Distribution

wensleydale-0.1.0-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

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