Pythonparser is a python tool that produces a GumTree compatible Python AST. It uses under the hood asttokens and jsontree. This version has two scripts available. One for py2 and one for py3
Just clone the repository and pip install -r requirements.txt
On Windows:
- Add PYTHONPATH envvar to pip install directory
- Change the PythonTreeGenerator.java to use python command instead of PATH