A AST pretty printer for python.
Project description
pprintast
An AST (abstract syntax tree) pretty printer for Python 🐍.
Installation
$ pip install pprintast
Usage
Script
# 1. pretty print AST from "file".
pprintast "./path/to/script.py"
Module
# 1. import the "pprintast" function.
from pprintast import pprintast as ppast
# 2. retty print AST from "string".
exp = "lambda a: a**2"
ppast(exp)
License
MIT © Travis Clarke
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
pprintast-0.0.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for pprintast-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a70d42943b6b8adfc853009592fbff2921816639d7de1fc5238529983784bad |
|
MD5 | 7ff6f0272fd9320f6ce9d1abba4d7871 |
|
BLAKE2b-256 | f836d201823dc3a4c001231af75e9645039db143523ada2a822fb39cb945783d |