Tree-sitter

Latest version: v0.24.0

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.24.0

_Breaking changes are marked with `!`._

Additions:

- `Language.copy()`
- `Language.node_kind_is_supertype(id)`
- `Language.__copy__()`
- `LogType` (enum)
- `Node.child_with_descendant(descendant)`
- `Node.field_name_for_named_child(descendant)`
- `Parser.print_dot_graphs(file)`
- `Parser.logger` (getter + setter)
- `Tree.copy()`
- `Tree.print_dot_graph(file)`
- `Tree.__copy__()`

Deprecations:

- `Language(ptr: int)`
- `Node.child_containing_descendant(descendant)`: use `Node.child_with_descendant(descendant)`

0.23.6

**NOTE:** Download `tree-sitter-python.tar.xz` for the *complete* source code.

0.23.5

**NOTE:** Download `tree-sitter-python.tar.xz` for the *complete* source code.

0.23.4

**NOTE:** Download `tree-sitter-python.tar.xz` for the *complete* source code.

0.23.3

**NOTE:** Download `tree-sitter-python.tar.xz` for the *complete* source code.

0.23.2

What's Changed
* Update documentation on `Query.captures()` by Bzero in https://github.com/tree-sitter/py-tree-sitter/pull/306
* build: bump tree_sitter/core from `46bdc14` to `f629fd4` by dependabot in https://github.com/tree-sitter/py-tree-sitter/pull/307
* fix(query): iterate over captures for the shortest size, not longest by amaanq in https://github.com/tree-sitter/py-tree-sitter/pull/309

New Contributors
* Bzero made their first contribution in https://github.com/tree-sitter/py-tree-sitter/pull/306

**Full Changelog**: https://github.com/tree-sitter/py-tree-sitter/compare/v0.23.1...v0.23.2

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.