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
- Host: GitHub
- URL: https://github.com/fpoli/python-astexport
- Owner: fpoli
- License: mit
- Created: 2015-12-07T17:27:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-06-19T22:54:39.000Z (almost 5 years ago)
- Last Synced: 2025-04-11T10:00:26.296Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 26
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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.