a pretty printer for abstract syntax trees
Project description
prettiest_ast
A simple pretty printer for python abstract syntax trees:
>>> from prettiest_ast import ppast
>>> ppast('for i in range(5): print(i)')
For
├──Name
│ ├──i
│ ╰──Store
├──Call
│ ├──Name
│ │ ├──range
│ │ ╰──Load
│ ╰──Constant
│ ╰──5
╰──Expr
╰──Call
├──Name
│ ├──print
│ ╰──Load
╰──Name
├──i
╰──Load
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for prettiest_ast-0.0.1.dev4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db57f3c24e25108531c26e1cfff5c94c181a3b19baf46241b3a276c0668fe8aa |
|
MD5 | 487275c65a748186521e6ad87f220438 |
|
BLAKE2b-256 | e6ccd35df75898652c0cfa2e1861958d2bd15ec019e37884a07696d7bcae76c6 |