Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prettiest_ast-0.0.1.dev4.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prettiest_ast-0.0.1.dev4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file prettiest_ast-0.0.1.dev4.tar.gz.

File metadata

  • Download URL: prettiest_ast-0.0.1.dev4.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

File hashes

Hashes for prettiest_ast-0.0.1.dev4.tar.gz
Algorithm Hash digest
SHA256 9ee1b43bfdf6a41014f8e11b08c4166046d1b0aaa83e77bd82468d4af1b6f63f
MD5 a8aaf1758f6a668dcb801a7d686bcf6a
BLAKE2b-256 cca6fb7960979e80653c71926936f0adf902206125a61df944d9c8f30a67cce5

See more details on using hashes here.

File details

Details for the file prettiest_ast-0.0.1.dev4-py3-none-any.whl.

File metadata

  • Download URL: prettiest_ast-0.0.1.dev4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

File hashes

Hashes for prettiest_ast-0.0.1.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 db57f3c24e25108531c26e1cfff5c94c181a3b19baf46241b3a276c0668fe8aa
MD5 487275c65a748186521e6ad87f220438
BLAKE2b-256 e6ccd35df75898652c0cfa2e1861958d2bd15ec019e37884a07696d7bcae76c6

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