Skip to main content

Module parser

Module parser 

Source
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§

ImportInfo
An import statement extracted from source.
ParseResult
Result of parsing a Python file.

Enums§

ParseError
Errors from parsing operations.

Functions§

parse_python_file
Parse a Python source file into CodeNodes.
sha256_hex
Compute SHA-256 hex digest.