python-client icon indicating copy to clipboard operation
python-client copied to clipboard

Babelfish Python client

Results 9 python-client issues
Sort by recently updated
recently updated
newest added

There doesn't appear to be a way to convert the ResultContext object into a JSON format very easily. Can this functionality be added into the class definition? Thanks!

Currently the python client does not work for me it just hangs on attempting to parse a file. I am only running the following: client = bblfsh.BblfshClient("localhost:9432") print("parsing") ctx =...

This should hold for the binary format, but a minimal example shows that the bytes are not preserved: ```python from bblfsh import * file = "fixtures/test.py" client = BblfshClient("localhost:9432") ctx...

bug

Hi, I found that python-driver has lack of position information for several types of tokens. ```python import bblfsh client = bblfsh.BblfshClient("0.0.0.0:9432") file_loc = "location/of/file.py" # read content with open(file_loc, "r")...

bug

As explained in the sibling issue in [`scala-client`](https://github.com/bblfsh/scala-client/issues/136) [this method](https://github.com/bblfsh/python-client/blob/272454e25d30f7389729803078e2f0577b82b1c7/bblfsh/pyuast.cc#L931) does not work natively. Currently we do provide a Python Context [way](https://github.com/bblfsh/python-client/blob/272454e25d30f7389729803078e2f0577b82b1c7/bblfsh/result_context.py#L77) of retrieving the root, so I would say...

bug

Right now `NodeIterator` (`node_iterator.py` file) and `Node` (`node.py` file) contain a reference to the `Context`, so that it does not get deallocated when we are working with an iterator which...

enhancement

Hi, I measured time for the same query that I used in https://github.com/bblfsh/client-python/issues/100 - I think it's very suspicious that it's so slow. Measurements: ```bash egor@egor-sourced:~/workspace/ml$ time python3 test_filter_libuast.py 100...

The following code hangs: ```python import bblfsh def decode(uast): return bblfsh.decode(uast).load() uasts = [b"", b"", ...] # protobuf bytes pool = multiprocessing.Pool(multiprocessing.cpu_count()) pool.map(decode, uasts) ``` however this doesn't ```python def...

bug

Hi. I am new to bblfsh and was wondering if I could convert a UAST into Python's AST structure defined by the `ast` module. Thanks!

enhancement