py-tree-sitter icon indicating copy to clipboard operation
py-tree-sitter copied to clipboard

Python bindings to the Tree-sitter parsing library

Results 56 py-tree-sitter issues
Sort by recently updated
recently updated
newest added

Greate work on tree-sitter and the python binding. The only issue I found was, that there are no type hints. That makes it very hard to work with the package....

I want to get the matches of query result rather than captures, but the python binding seems not implementing this API. And the rust binding seems working well. Why python...

Just wanted to point you to [wenkokke/py-tree-sitter-type-provider](https://github.com/wenkokke/py-tree-sitter-type-provider), which: - generates dataclasses from a `node-types.json` file, - provides a conversion from `tree_sitter.Node` to those dataclasses, and - provides a generic visitor...

I am getting a value error when trying to parse a piece of C code. I have built the grammar as instructed and instantiated the parser. The issue is similar...

The test included here returns: ```bash ====================================================================== ERROR: test_match_assert (tests.test_tree_sitter.TestQuery) ---------------------------------------------------------------------- ValueError: An error occurred, capture was not found with given index The above exception was the direct cause of...

Hello guys, I was wondering which is the fastest way to tokenize a parsable piece of code, let's say a method. Thank y'all in advance.

I'm looking to search several million source files using the tree-sitter query interface. I'd love to use a thread pool in Python for this. Would it be possible to make...

help wanted
good first issue

I've used GitHub Actions in the past to distribute binary wheels. Would you be open to do that with py-tree-sitter? Also, the current workflow for adding language support is hard...

Sorry @stonewell, I accidentally broke PR #109 add node descendant_for_point_range descendant_for_byte_range named_descendant_for_point_range named_descendant_for_byte_range Can you add some basic Python tests for this? Then I'll merge it.

I was playing around and was missing the method to edit nodes without having to recapture nodes after a source file edit. This is almost a copy of the tree_edit...