analyse_python.analyse_block

convert.analyse_python.analyse_block(src_bytes, fcb_node, lang_text)

Extract metadata for a single fenced Python code block.

This combines structural information from the Tree-sitter node (start row, closing delimiter row) with line-level analysis from _analyse_block_content.

Parameters

Name Type Description Default
src_bytes bytes UTF-8 encoded document source. required
fcb_node Node A fenced_code_block node identified as Python. required
lang_text str Raw language text for the block (e.g., python or .python). required