/python-astexport

Export Python AST to JSON

Primary LanguagePythonMIT LicenseMIT

python-astexport

https://travis-ci.org/fpoli/python-astexport.svg?branch=master

Python command line application to export Python 3 AST as JSON.

Python 2.7 AST was used up to version 0.2.1 of this library.

Installation

$ pip install astexport

Usage

$ astexport < example.py > ast.json
$ astexport --help

License

Copyright (c) 2015, Federico Poli <federpoli@gmail.com>

Released under the MIT license.