An open API service indexing awesome lists of open source software.

https://github.com/fpoli/python-astexport

Export Python AST to JSON
https://github.com/fpoli/python-astexport

Last synced: about 1 year ago
JSON representation

Export Python AST to JSON

Awesome Lists containing this project

README

          

python-astexport
================

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

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
------------

.. code-block:: bash

$ pip install astexport

Usage
-----

.. code-block:: bash

$ astexport < example.py > ast.json

.. code-block:: bash

$ astexport --help

License
-------

Copyright (c) 2015, Federico Poli

Released under the MIT license.