Skip to main content

Visualize Python AST in console.

Project description

astboom

Visualize Python AST in console using ASCII graphics.

Example

Example usage

Usage

Simply provide a valid Python source code string as an argument and a corresponding AST will be displayed.

# astboom --help
Usage: astboom [OPTIONS] [SOURCE]

Options:
  --no-pos  Hide 'col_offset' and 'lineno' fields.
  --help    Show this message and exit.

If no source provided as an argument, then tool will attempt to read it from STDIN.

Installation

# pip install astboom

Getting started with development

# git clone https://github.com/lensvol/astboom
# poetry install --develop

License

This project is licensed under the MIT License - see the LICENSE file for details

Authors

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

astboom-0.1.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

astboom-0.1.0-py3-none-any.whl (4.6 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