Skip to main content

Overview

Python splitter uses the Abstract Syntax Tree (AST) to identify precise boundaries of logical blocks like classes and functions. Provides semantically meaningful chunking that’s robust to formatting variations. Each chunk includes metadata about the code structure. Splitter Class: PythonChunker Config Class: PythonChunkingConfig

Dependencies

No additional dependencies required. Uses standard library.

Examples

Parameters