This a pure Python implementation of querying Babelfish server.
API
from bblfsh import BblfshClient
client = BblfshClient("0.0.0.0:9432")
print(client.parse("/path/to/file.py"))
Command line
python3 -m bblfsh -f file.py
pip3 install bblfsh
It is possible to regenerate the gRPC/protobuf bindings by executing make
.
Apache 2.0.