Expand description
tree-sitter Python parser — extract CodeNodes from Python source files.
Parses Python source into a tree of CodeNodes representing files, classes, functions, methods, and imports. Builds containment hierarchy via parent_id.
Structs§
- Import
Info - An import statement extracted from source.
- Parse
Result - Result of parsing a Python file.
Enums§
- Parse
Error - Errors from parsing operations.
Functions§
- parse_
python_ file - Parse a Python source file into CodeNodes.
- sha256_
hex - Compute SHA-256 hex digest.